1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

code review

This commit is contained in:
gorhill 2014-11-07 10:47:09 -05:00
parent 2ebe5dc13a
commit 088e946a87

View File

@ -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-- ) {