mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 23:41:42 +00:00
Update app.js
This commit is contained in:
parent
daa47a8fc5
commit
c808595395
6
app.js
6
app.js
|
@ -60,13 +60,13 @@ var console = {
|
|||
_echo: function(args, type) {
|
||||
msg = (typeof(type) !== "undefined" ? type + ": " : "") + this._join(args);
|
||||
if (typeof(WScript) !== "undefined") {
|
||||
WScript.echo(" * " + msg);
|
||||
WScript.echo(" * " + (type == "log" ? msg : "[" + type + "] " + msg));
|
||||
}
|
||||
this._messages.push(msg);
|
||||
|
||||
// after calling echo
|
||||
if (typeof this._echoCallback === "function") {
|
||||
_echoCallback(this);
|
||||
if (['error', 'info', 'warn'].indexOf(type) > -1 && typeof this._echoCallback === "function") {
|
||||
this._echoCallback(this);
|
||||
}
|
||||
},
|
||||
assert: function(assertion) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user