delete array comprehesion

This commit is contained in:
Aurélien Delobelle 2017-03-25 10:26:45 +01:00
parent 967748ded3
commit 6afbcb44a1

View file

@ -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() {