1
0
Fork 0

fixed print function

This commit is contained in:
Heiko Kernbach 2013-03-14 14:26:01 +01:00
parent d308181b2b
commit e8ccf84b05
2 changed files with 7 additions and 5 deletions

View File

@ -471,9 +471,10 @@ ModuleCache["/internal"] = new Module("/internal");
internal.printShell.apply(internal.printShell, arguments);
// flush buffer
$('#shellContent').append('<p class="shellSuccess">'
+ internal.browserOutputBuffer
+ '</p>');
//$('#shellContent').append('<p class="shellSuccess">'
// + internal.browserOutputBuffer
// + '</p>');
jqconsole.Write('==> ' + internal.browserOutputBuffer + '\n', 'jssuccess');
internal.browserOutputBuffer = "";
};

View File

@ -102,7 +102,8 @@ var shellView = Backbone.View.extend({
}
}
catch(e) {
$('#shellContent').append('<p class="shellError">Error:' + e + '</p>');
//$('#shellContent').append('<p class="shellError">Error:' + e + '</p>');
jqconsole.Write('ReferenceError: ' + e + '\n', 'jserror');
}
}