Ticket #4473: toggle-true.patch

File toggle-true.patch, 674 bytes (added by thorn, 11 years ago)
  • effects.core.js

     
    175175        },
    176176
    177177        toggle: function(){
    178                 if(!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])) || (arguments[0].constructor == Function))
     178                if(!arguments[0] || arguments[0] === true || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])) || (arguments[0].constructor == Function))
    179179                        return this.__toggle.apply(this, arguments);
    180180                else {
    181181                        return this.effect.apply(this, _normalizeArguments(arguments, 'toggle'));