I'm not experienced enough for that but.. I would say find this
if (d === c.SUBMIT_CLASS)
this.model.cart.checkout(a);
else if (d === c.CLOSER_CLASS)
this.hide();
else if (d === c.REMOVE_CLASS)
this.model.cart.remove(b.getAttribute(c.DATA_IDX));
else if (d === c.QUANTITY_CLASS)
b[b.setSelectionRange ? "setSelectionRange": "select"](0, 999);
else if (!/input|button|select|option/i.test(b.tagName)) {
for (; 1 === b.nodeType;) {
if (b === this.el)
return;
b = b.parentNode
}
this.hide()
}
and try replacing it with
if (d === c.SUBMIT_CLASS)
this.model.cart.checkout(a);
else if (d === c.CLOSER_CLASS)
this.hide();
else if (d === c.REMOVE_CLASS)
this.model.cart.remove(b.getAttribute(c.DATA_IDX));
else if (d === c.QUANTITY_CLASS)
b[b.setSelectionRange ? "setSelectionRange": "select"](0, 999);
else if (!/input|button|select|option/i.test(b.tagName)) {
for (; 1 === b.nodeType;) {
if (b === this.el)
return;
b = b.parentNode
}
}