Skip to content

Commit

Permalink
add missing 'let' decl
Browse files Browse the repository at this point in the history
  • Loading branch information
leeoniya committed Apr 8, 2019
1 parent 490e3d0 commit 73efedb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dist/dropcss.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ function parseNth(expr) {

// DRYed out nth-child/nth-last-child logic
function _nthChild(pos, val) {
var res;

if (val == 'odd')
{ res = pos % 2 == 1; }
else if (val == 'even')
Expand Down
2 changes: 2 additions & 0 deletions dist/dropcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,8 @@

// DRYed out nth-child/nth-last-child logic
function _nthChild(pos, val) {
var res;

if (val == 'odd')
{ res = pos % 2 == 1; }
else if (val == 'even')
Expand Down
2 changes: 1 addition & 1 deletion dist/dropcss.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/sel.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ function parseNth(expr) {

// DRYed out nth-child/nth-last-child logic
function _nthChild(pos, val) {
let res;

if (val == 'odd')
res = pos % 2 == 1;
else if (val == 'even')
Expand Down
2 changes: 1 addition & 1 deletion test/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ All files | 96.71 | 87.98 | 100 | 96.6 | |
html.js | 98.82 | 94.12 | 100 | 98.77 | 104 |
matches.js | 100 | 100 | 100 | 100 | |
nth.js | 56.25 | 45 | 100 | 56.25 |... 38,41,47,52,54 |
sel.js | 96.95 | 88.89 | 100 | 96.91 |... 10,115,122,246 |
sel.js | 96.95 | 88.89 | 100 | 96.91 |... 10,115,122,248 |
------------|----------|----------|----------|----------|-------------------|

0 comments on commit 73efedb

Please sign in to comment.