aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.clip.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.effects.clip.js')
-rw-r--r--ui/jquery.effects.clip.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/jquery.effects.clip.js b/ui/jquery.effects.clip.js
index 8c5c76e8c..c6eecc671 100644
--- a/ui/jquery.effects.clip.js
+++ b/ui/jquery.effects.clip.js
@@ -12,7 +12,7 @@
*/
(function( $, undefined ) {
-$.effects.effect.clip = function( o, next ) {
+$.effects.effect.clip = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
@@ -57,10 +57,7 @@ $.effects.effect.clip = function( o, next ) {
}
$.effects.restore( el, props );
$.effects.removeWrapper( el );
- if ( $.isFunction( o.complete ) ) {
- o.complete.apply( el[ 0 ], arguments );
- }
- el.dequeue();
+ done();
}
});