aboutsummaryrefslogtreecommitdiffstats
path: root/ui/effects.core.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/effects.core.js')
-rw-r--r--ui/effects.core.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/effects.core.js b/ui/effects.core.js
index 8313cd29b..e4f3dc118 100644
--- a/ui/effects.core.js
+++ b/ui/effects.core.js
@@ -175,9 +175,11 @@ $.fn.extend({
},
toggle: function(){
- if(!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])) || (arguments[0].constructor == Function))
+ if(!arguments[0] ||
+ (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])) ||
+ ($.isFunction(arguments[0]) || typeof arguments[0] == 'boolean')) {
return this.__toggle.apply(this, arguments);
- else {
+ } else {
return this.effect.apply(this, _normalizeArguments(arguments, 'toggle'));
}
},