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.choices = [
|
||||
for (option of this._$input.find('option'))
|
||||
if ($(option).attr('value') != '')
|
||||
parseInt($(option).attr('value'))
|
||||
];
|
||||
this.choices = this._$input.find('option[value!=""]').toArray()
|
||||
.map(function(opt) {
|
||||
return parseInt($(opt).attr('value'));
|
||||
});
|
||||
}
|
||||
|
||||
_init_events() {
|
||||
|
|
Loading…
Reference in a new issue