Resolve constructor issue

This commit is contained in:
Josh Johnson 2017-08-15 13:06:59 +01:00
parent c2c297d986
commit 74703665df
2 changed files with 4 additions and 2 deletions

View file

@ -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
}
}

View file

@ -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);
}
}
}