Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 030d7f5a

Von Sven Schöling vor fast 8 Jahren hinzugefügt

  • ID 030d7f5ac756b897895035cfc30d455a30d3ca84
  • Vorgänger 68bfe305
  • Nachfolger 5162c8cc

kivi/Part.js: commit_none hook korrekt verdrahten

Unterschiede anzeigen:

js/kivi.Part.js
388 388
            if (callbacks && callbacks.match_many) self.run_action(callbacks.match_many, [ data ]);
389 389
          } else {
390 390
            self.state = self.STATES.UNDEFINED;
391
            if (callbacks && callbacks.match_none) self.run_action(callbacks.match_none);
391
            if (callbacks && callbacks.match_none) self.run_action(callbacks.match_none, [ self, self.$dummy.val() ]);
392 392
          }
393 393
          self.annotate_state();
394 394
        }
......
425 425
        }
426 426
        if (event.which == KEY.ENTER) {
427 427
          self.handle_changed_text({
428
            match_none: self.o.action.commit_none,
428 429
            match_one:  self.o.action.commit_one,
429 430
            match_many: self.o.action.commit_many
430 431
          });

Auch abrufbar als: Unified diff