aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-02-19 13:25:02 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-02-19 13:25:02 +0000
commit0d523ed684db0e6d7c6b9a75b4813428233bbc47 (patch)
tree19c27c3032d11ce849aabec52b865481e975c3b8
parent3ef80b3b0f1e285a2be8df7d6138edf1342f89a2 (diff)
downloadjquery-ui-0d523ed684db0e6d7c6b9a75b4813428233bbc47.tar.gz
jquery-ui-0d523ed684db0e6d7c6b9a75b4813428233bbc47.zip
effects core: the second argument passed to effect methods wasn't checked for being a callback function (fixes #4181 - Effects methods don't allow callback as the second parameter)
-rw-r--r--ui/effects.core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/effects.core.js b/ui/effects.core.js
index eb448e71e..7309f6f7c 100644
--- a/ui/effects.core.js
+++ b/ui/effects.core.js
@@ -136,7 +136,7 @@ function _normalizeArguments(a, m) {
var o = a[1] && a[1].constructor == Object ? a[1] : {}; if(m) o.mode = m;
var speed = a[1] && a[1].constructor != Object ? a[1] : (o.duration ? o.duration : a[2]); //either comes from options.duration or the secon/third argument
speed = $.fx.off ? 0 : typeof speed === "number" ? speed : $.fx.speeds[speed] || $.fx.speeds._default;
- var callback = o.callback || ( $.isFunction(a[2]) && a[2] ) || ( $.isFunction(a[3]) && a[3] );
+ var callback = o.callback || ( $.isFunction(a[1]) && a[1] ) || ( $.isFunction(a[2]) && a[2] ) || ( $.isFunction(a[3]) && a[3] );
return [a[0], o, speed, callback];