mercadolibre/chico — Issue #394: Form: event is not defined
Author: pazguille
Created: 2011-10-12 14:59:04+00:00
State: open
Labels: Bug

version: v0.7.9
Bug: When I submit the form using ."submit" method, the "click" event is not defined, therefore this event doesn't stop immediately.
Fix:
// If an error ocurs prevent default actions
if (!status) {
that.prevent(event);

if (event) {
event.stopImmediatePropagation();
}
}