From 030d7f5ac756b897895035cfc30d455a30d3ca84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 13 Feb 2017 16:24:54 +0100 Subject: [PATCH] kivi/Part.js: commit_none hook korrekt verdrahten --- js/kivi.Part.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/kivi.Part.js b/js/kivi.Part.js index 595db8c74..ce86feb96 100644 --- a/js/kivi.Part.js +++ b/js/kivi.Part.js @@ -388,7 +388,7 @@ namespace('kivi.Part', function(ns) { 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(); } @@ -425,6 +425,7 @@ namespace('kivi.Part', function(ns) { } 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 }); -- 2.20.1