mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-03 14:32:11 +02:00
Resolve constructor issue
This commit is contained in:
parent
c2c297d986
commit
74703665df
|
@ -11,6 +11,7 @@
|
||||||
"rules": {
|
"rules": {
|
||||||
"strict": 0,
|
"strict": 0,
|
||||||
"no-underscore-dangle": 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) {
|
if (elements.length > 1) {
|
||||||
for (let i = 1; i < elements.length; i += 1) {
|
for (let i = 1; i < elements.length; i += 1) {
|
||||||
const el = elements[i];
|
const el = elements[i];
|
||||||
return new Choices(el, userConfig);
|
/* eslint-disable no-new */
|
||||||
|
new Choices(el, userConfig);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue