Skip to content
This repository was archived by the owner on Oct 27, 2019. It is now read-only.

Commit ff52d89

Browse files
committed
- fixed a variable name bug.
1 parent 94efd4d commit ff52d89

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Slick.Finder.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -675,9 +675,7 @@ local.override(/^\.[\w-]+$/, function(expression, found, first){ // class overri
675675
nodes = this.getElementsByClassName(className);
676676
if (first) return nodes[0] || null;
677677
for (i = 0; node = nodes[i++];){
678-
if (!hasOthers || !local.uniques[local.getUIDHTML(node)]){
679-
found.push(node);
680-
}
678+
if (!hasOthers || !local.uniques[local.getUIDHTML(node)]) found.push(node);
681679
}
682680
} else {
683681
var matchClass = new RegExp('(^|\\s)'+ Slick.escapeRegExp(className) +'(\\s|$)');
@@ -700,7 +698,7 @@ local.override(/^#[\w-]+$/, function(expression, found, first){ // ID override
700698
if (local.idGetsName && el.getAttributeNode('id').nodeValue != id) return false;
701699
if (first) return el || null;
702700
var hasOthers = !!(found.length) ;
703-
if (!hasOthers || !local.uniques[local.getUIDHTML(node)]) found.push(el);
701+
if (!hasOthers || !local.uniques[local.getUIDHTML(el)]) found.push(el);
704702
if (hasOthers) local.sort(found);
705703
return true;
706704
});

0 commit comments

Comments
 (0)