1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 16:47:59 +01:00

Fix executing commandline.input callback. Closes issue #331.

This commit is contained in:
Kris Maglione
2011-01-30 11:14:50 -05:00
parent c50ddf6bb6
commit 64e9cfc545
4 changed files with 16 additions and 9 deletions

View File

@@ -430,7 +430,7 @@ var CommandExMode = Class("CommandExMode", CommandMode, {
var CommandPromptMode = Class("CommandPromptMode", CommandMode, {
init: function init(prompt, params) {
this.prompt = prompt;
this.prompt = isArray(prompt) ? prompt : ["Question", prompt];
update(this, params);
init.supercall(this);
},
@@ -752,7 +752,7 @@ var CommandLine = Module("commandline", {
input: function _input(prompt, callback, extra) {
extra = extra || {};
CommandPromptMode(prompt, extra).open();
CommandPromptMode(prompt, update({ onSubmit: callback }, extra)).open();
},
readHeredoc: function readHeredoc(end) {