aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.fold.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.effects.fold.js')
-rw-r--r--ui/jquery.effects.fold.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/jquery.effects.fold.js b/ui/jquery.effects.fold.js
index b2a02ba78..7c4f583c1 100644
--- a/ui/jquery.effects.fold.js
+++ b/ui/jquery.effects.fold.js
@@ -12,7 +12,7 @@
*/
(function( $, undefined ) {
-$.effects.effect.fold = function( o, next ) {
+$.effects.effect.fold = function( o, done ) {
// Create element
var el = $( this ),
@@ -66,10 +66,7 @@ $.effects.effect.fold = function( o, next ) {
}
$.effects.restore( el, props );
$.effects.removeWrapper( el );
- if ( $.isFunction( o.complete ) ) {
- o.complete.apply( el[ 0 ], arguments );
- }
- next();
+ done();
});
};