aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-11-07 17:22:35 +0100
committerJohn Resig <jeresig@gmail.com>2009-11-07 17:22:35 +0100
commit3106039aa89410c9abae9947b2520d9c8e62f8f0 (patch)
treea17e76294223d492916b51a5ed33e1e2b4874ad5 /src/fx.js
parentb0fe380cf89564305646bbd55d1fd7bd210fd591 (diff)
downloadjquery-3106039aa89410c9abae9947b2520d9c8e62f8f0.tar.gz
jquery-3106039aa89410c9abae9947b2520d9c8e62f8f0.zip
Made sure that animate callbacks get executed even when no properties are passed in. Fixes #5459.
Diffstat (limited to 'src/fx.js')
-rw-r--r--src/fx.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fx.js b/src/fx.js
index 24d28410d..801d92c0c 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -164,6 +164,10 @@ jQuery.fn.extend({
}
});
+ if ( jQuery.isEmptyObject( prop ) ) {
+ return optall.complete.call(this);
+ }
+
// For JS strict compliance
return true;
});
@@ -427,4 +431,4 @@ if ( jQuery.expr && jQuery.expr.filters ) {
return elem === fn.elem;
}).length;
};
-} \ No newline at end of file
+}