$.each(this.element.find('.item' + this.bmidselector + ':not(.sample) .subform' + this.bmidselector), function () {
$(this).find('.bunchmultiple').each(function () {
- $(this).data('bunchmultiple').serialize();
+ try {
+ $(this).data('bunchmultiple').serialize();
+ } catch (e) {
+
+ }
});
var data = $(this).find(':input' + $this.bmidselector).serializeArray();
if (this.element.find('.item' + this.bmidselector + ':not(.sample)').length === 0) {
this.initItem();
}
+
+ console.log('removed', item);
+
+ var $this = this;
+ setTimeout(function () {
+ $this.updateAndChange();
+ }, 250);
+ $this.updateAndChange();
+ },
+
+ updateAndChange: function () {
this.update();
+ $(this).trigger('change');
},
initItem: function (values) {
} catch (e) {
console.log(e);
}
- this.updateLegends();
+ this.updateAndChange();
},
};