Сергей Колоней
නොකියවූ,2012 මාර්තු 14, 12.50.112012-03-14Sign in to reply to author
Sign in to forward
ඔබට මෙම සමූහයෙහි පණිවිඩ මැකීමට අවසරය නැත
පණිවිඩය අයථා පරිහරණයක් ලෙස වාර්තා කරන්න
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
සිට threedubmedia
Seems like there was several changes in jquery 1.7 related to inner
representation of live events, so plugin's code which dealt with them
appeared to be incorrect.
I've fixed this issue by rewriting half of code inside plugin's
delegate() function:
// identify potential delegate elements
delegate: function( event ){
// local refs
var elems = [], target,
// element event structure
events = $.data( this, "events" ) || {},
key, i, liver;
// query live events
for (key in events) {
if (key.indexOf("drag") !== 0)
continue;
liver = events[key];
for (i=0; i<liver.length; i++) {
target = $( event.target ).closest( liver[i].selector,
event.currentTarget )[0];
if ( !target )
continue;
$event.add( target, liver[i].origType+'.'+drag.livekey,
liver[i].origHandler || liver[i].handler, liver[i].data );
// remember new elements
if ( $.inArray( target, elems ) < 0 )
elems.push( target );
}
}
// if there are no elements, break
if ( !elems.length )
return false;
// return the matched results, and clenup when complete
return $( elems ).bind("dragend."+ drag.livekey, function(){
$event.remove( this, "."+ drag.livekey ); // cleanup delegation
});
},
I hope it helps :)
It's a pity, but it seems that this plugin isn't maintained.