if (callbacks && callbacks.match_many) self.run_action(callbacks.match_many, [ data ]);
} else {
self.state = self.STATES.UNDEFINED;
- if (callbacks && callbacks.match_none) self.run_action(callbacks.match_none);
+ if (callbacks && callbacks.match_none) self.run_action(callbacks.match_none, [ self, self.$dummy.val() ]);
}
self.annotate_state();
}
}
if (event.which == KEY.ENTER) {
self.handle_changed_text({
+ match_none: self.o.action.commit_none,
match_one: self.o.action.commit_one,
match_many: self.o.action.commit_many
});