use el[0] instead of this for callback

This commit is contained in:
Aaron Eisenberger
2008-06-16 13:26:08 +00:00
parent 8ec7ceea10
commit 30ebfe2db2

View File

@@ -42,7 +42,7 @@ $.effects.clip = function(o) {
wrapper.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
if(mode == 'hide') el.hide(); // Hide
$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
if(o.callback) o.callback.apply(this, arguments); // Callback
if(o.callback) o.callback.apply(el[0], arguments); // Callback
el.dequeue();
}});