I have an input field, which has two event handlers bound to it.
Validate & AutoSave
Obviously I want to validate before I save. If validation fails, the
Normally you'd have the Save event handler call Validate() which will return true if everything is fine and ready to be saved.
function onSaved() { if (!validate()) { // set class return; } // do the save }