Skip to content

Commit

Permalink
Resolve constructor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jshjohnson committed Aug 15, 2017
1 parent c2c297d commit 7470366
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"rules": {
"strict": 0,
"no-underscore-dangle": 0,
"no-console": ["warn", { allow: ["warn", "error"] }]
"no-console": ["warn", { allow: ["warn", "error"] }],
"space-before-function-paren": 0
}
}
3 changes: 2 additions & 1 deletion assets/scripts/src/choices.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class Choices {
if (elements.length > 1) {
for (let i = 1; i < elements.length; i += 1) {
const el = elements[i];
return new Choices(el, userConfig);
/* eslint-disable no-new */
new Choices(el, userConfig);
}
}
}
Expand Down

0 comments on commit 7470366

Please sign in to comment.