leemhenson
15 Oct 2007, 4:48 AM
Hi,
I'm using 1.1.1 with the prototype adapter (using the prototype + scriptaculous libraries included in the adapter folder), and I'm getting an error in the isValidHandleChild function within Ext.dd.DragDrop @ line 8022 of ext-debug-all.js.
Original version:
isValidHandleChild: function(node) {
var valid = true;
var nodeName;
try {
nodeName = node.nodeName.toUpperCase();
} catch(e) {
nodeName = node.nodeName;
}
valid = valid && !this.invalidHandleTypes[nodeName];
valid = valid && !this.invalidHandleIds[node.id];
for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) {
valid = !Dom.hasClass(node, this.invalidHandleClasses[i]);
}
return valid;
}
My change:
isValidHandleChild: function(node) {
var valid = true;
var nodeName;
try {
nodeName = node.nodeName.toUpperCase();
} catch(e) {
nodeName = node.nodeName;
}
valid = valid && !this.invalidHandleTypes[nodeName];
valid = valid && !this.invalidHandleIds[node.id];
for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) {
valid = !Ext.fly(node).hasClass(this.invalidHandleClasses[i]);
}
return valid;
}
This seems to have fixed it, though I'm interested to know whether this is just a bug or a sympton of invalid configuration I may have supplied somewhere else.
Cheers
Lee
I'm using 1.1.1 with the prototype adapter (using the prototype + scriptaculous libraries included in the adapter folder), and I'm getting an error in the isValidHandleChild function within Ext.dd.DragDrop @ line 8022 of ext-debug-all.js.
Original version:
isValidHandleChild: function(node) {
var valid = true;
var nodeName;
try {
nodeName = node.nodeName.toUpperCase();
} catch(e) {
nodeName = node.nodeName;
}
valid = valid && !this.invalidHandleTypes[nodeName];
valid = valid && !this.invalidHandleIds[node.id];
for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) {
valid = !Dom.hasClass(node, this.invalidHandleClasses[i]);
}
return valid;
}
My change:
isValidHandleChild: function(node) {
var valid = true;
var nodeName;
try {
nodeName = node.nodeName.toUpperCase();
} catch(e) {
nodeName = node.nodeName;
}
valid = valid && !this.invalidHandleTypes[nodeName];
valid = valid && !this.invalidHandleIds[node.id];
for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) {
valid = !Ext.fly(node).hasClass(this.invalidHandleClasses[i]);
}
return valid;
}
This seems to have fixed it, though I'm interested to know whether this is just a bug or a sympton of invalid configuration I may have supplied somewhere else.
Cheers
Lee