Skip to main content

Search and Top Navigation

Ticket #4473: toggle-true.patch


File toggle-true.patch, 0.7 KB (added by thorn, April 15, 2009 11:43AM UTC)
Index: effects.core.js
===================================================================
--- effects.core.js	(revision 2450)
+++ effects.core.js	(working copy)
@@ -175,7 +175,7 @@
 	},
 
 	toggle: function(){
-		if(!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])) || (arguments[0].constructor == Function))
+		if(!arguments[0] || arguments[0] === true || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])) || (arguments[0].constructor == Function))
 			return this.__toggle.apply(this, arguments);
 		else {
 			return this.effect.apply(this, _normalizeArguments(arguments, 'toggle'));

Download in other formats:

Original Format