Skip to content

Commit

Permalink
Merge pull request #1 from amccloud/fix-queryselector-polyfill
Browse files Browse the repository at this point in the history
Add missing condition from original polyfill
  • Loading branch information
amccloud committed Feb 19, 2015
2 parents e27cd1d + 52ecbdc commit 5bec1a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/browser/ui/dom/components/ReactDOMInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ function querySelectorAllPolyfill(r, c, i, j, a) {
for (i = r.length; i--;) {
s.addRule(r[i], 'k:v');
for (j = a.length; j--;) {
a[j].currentStyle.k;
c.push(a[j]);
a[j].currentStyle.k && c.push(a[j]);
}
s.removeRule(0);
}
Expand Down

0 comments on commit 5bec1a9

Please sign in to comment.