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._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() {