From ba6c08871676f70a779acffd50d48526fb8a9ddc Mon Sep 17 00:00:00 2001 From: David Vazquez Date: Sat, 22 Dec 2012 15:48:16 +0000 Subject: [PATCH] , prefix in the REPL to compile --- test.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test.html b/test.html index 322ccbf..c8cb256 100644 --- a/test.html +++ b/test.html @@ -60,9 +60,11 @@ // Start the prompt with history enabled. jqconsole.Prompt(true, function (input) { // Output input with the class jqconsole-output. - if (input[0] == ',') + if (input[0] != ','){ jqconsole.Write(JSON.stringify(lisp.evalString(input)) + '\n', 'jqconsole-output'); - jqconsole.Write(JSON.stringify(lisp.compileString(input)) + '\n', 'jqconsole-output'); + } else { + jqconsole.Write(JSON.stringify(lisp.compileString(input.slice(0))) + '\n', 'jqconsole-output'); + } // Restart the prompt. startPrompt(); }); -- 1.7.10.4