From 7558fedc38b6e93521854a90665728a8b9df9871 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 26 Dec 2016 12:37:43 -0500 Subject: [PATCH] fix typo in new :if/:if-not procedural operators --- src/js/contentscript.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/contentscript.js b/src/js/contentscript.js index 33f241aca..12d249e54 100644 --- a/src/js/contentscript.js +++ b/src/js/contentscript.js @@ -443,11 +443,11 @@ PSelector.prototype.exec = function(input) { }; PSelector.prototype.test = function(input) { //var t0 = window.performance.now(); - var tasks = this.tasks, nodes = this.prime(input), aa0 = [ null ], aa; + var tasks = this.tasks, nodes = this.prime(input), AA = [ null ], aa; for ( var i = 0, ni = nodes.length; i < ni; i++ ) { - aa0[0] = nodes[i]; aa = aa0; + AA[0] = nodes[i]; aa = AA; for ( var j = 0, nj = tasks.length; j < nj && aa.length !== 0; j++ ) { - aa = tasks[i].exec(aa); + aa = tasks[j].exec(aa); } if ( aa.length !== 0 ) { return true; } }