aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/effect.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/effect.js b/ui/effect.js
index cc9a91045..a946c6e8b 100644
--- a/ui/effect.js
+++ b/ui/effect.js
@@ -1505,7 +1505,9 @@ $.fn.extend({
})
.animate( animation, options.duration, options.easing, function() {
transfer.remove();
- done();
+ if ( $.isFunction( done ) ) {
+ done();
+ }
});
}
});