PDA

View Full Version : [CLOSED][3.x] jQuery 1.3.2 adapter - Bug with DragZone



jheid
31 Aug 2009, 9:27 AM
I've tried the example from http://extjs.com/deploy/dev/docs/output/Ext.dd.DragZone.html with the jQuery (1.3.2) adapter. After dragging and releasing the "going back" animation is broken.

I figured out that in the jQuery function "animate" the following line get called with a function as the variable "val":


if (/toggle|show|hide/.test(val) )
e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );


After changing that to



if (typeof val == 'string' && /toggle|show|hide/.test(val) )
e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );


it all works correctly. The function that makes the problem is


function () {
this.hide(true);
if (typeof this.callback == "function") {
this.callback.call(this.scope || this);
}
this.callback = null;
this.scope = null;
}


jQuery or ExtJS bug?

Cheers,
Jörn

Condor
31 Aug 2009, 10:07 AM
Duplicate of this bugreport (http://www.extjs.com/forum/showthread.php?t=75044) (already fixed).

evant
31 Aug 2009, 4:56 PM
Yup, this one has already been corrected in SVN. Marking as closed.