mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-21 23:16:38 +02:00
Resolve constructor issue
This commit is contained in:
parent
c2c297d986
commit
74703665df
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue