From 088e946a875b7645117eac7d9136460609cc8044 Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 7 Nov 2014 10:47:09 -0500 Subject: [PATCH] code review --- js/udom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/udom.js b/js/udom.js index 996b8f84d..4e9925765 100644 --- a/js/udom.js +++ b/js/udom.js @@ -582,7 +582,7 @@ var toggleClass = function(node, className, targetState) { if ( newState === currentState ) { return; } - tokenList.toggle(className, newState) + tokenList.toggle(className, newState); }; /******************************************************************************/ @@ -616,7 +616,7 @@ DOMList.prototype.removeClass = function(className) { DOMList.prototype.toggleClass = function(className, targetState) { if ( className.indexOf(' ') !== -1 ) { - return this.toggleClasses(className, true); + return this.toggleClasses(className, targetState); } var i = this.nodes.length; while ( i-- ) {