forked from DGNum/gestioCOF
delete array comprehesion
This commit is contained in:
parent
967748ded3
commit
6afbcb44a1
1 changed files with 4 additions and 5 deletions
|
@ -344,11 +344,10 @@ class CheckoutSelection {
|
||||||
|
|
||||||
this._init_events();
|
this._init_events();
|
||||||
|
|
||||||
this.choices = [
|
this.choices = this._$input.find('option[value!=""]').toArray()
|
||||||
for (option of this._$input.find('option'))
|
.map(function(opt) {
|
||||||
if ($(option).attr('value') != '')
|
return parseInt($(opt).attr('value'));
|
||||||
parseInt($(option).attr('value'))
|
});
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_init_events() {
|
_init_events() {
|
||||||
|
|
Loading…
Reference in a new issue