mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 21:51:04 +00:00
Update app.js
This commit is contained in:
parent
2cccde3650
commit
7b1353998e
6
app.js
6
app.js
|
@ -97,7 +97,7 @@ var console = {
|
||||||
timeLog: function(label, end) {
|
timeLog: function(label, end) {
|
||||||
label = label || "default";
|
label = label || "default";
|
||||||
if (label in this._timers) {
|
if (label in this._timers) {
|
||||||
console.debug(label + ": " + ((new Date()).getTime() - this._timers[label].getTime()) + "ms" + (end ? " - timer ended" : ""));
|
console.debug(label + ": ", ((new Date()).getTime() - this._timers[label].getTime()) + "ms", (end ? " - timer ended" : ""));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
timeEnd: function(label) {
|
timeEnd: function(label) {
|
||||||
|
@ -181,7 +181,7 @@ function require(FN) {
|
||||||
try {
|
try {
|
||||||
cache[FN] = eval(T);
|
cache[FN] = eval(T);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("PARSE ERROR!", e.number, ",", e.description, ", FN=", FN);
|
console.error("PARSE ERROR!", e.number + ",", e.description + ",", "FN=" + FN);
|
||||||
}
|
}
|
||||||
|
|
||||||
// print VERSIONINFO
|
// print VERSIONINFO
|
||||||
|
@ -224,7 +224,7 @@ require.__load__ = function(FN) {
|
||||||
T = objStream.readText();
|
T = objStream.readText();
|
||||||
objStream.close();
|
objStream.close();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("LOAD ERROR! ", e.number, ", ", e.description, ", FN=", FN);
|
console.error("LOAD ERROR!", e.number + ",", e.description + ",", "FN=" + FN);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user