mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
added log method to gui.js
This commit is contained in:
parent
b50f71fdf6
commit
51e844ec48
9
gui.js
9
gui.js
@ -11,7 +11,7 @@ var GUI = new function() {
|
|||||||
var handler = addHandlers[type];
|
var handler = addHandlers[type];
|
||||||
if (handler) {
|
if (handler) {
|
||||||
} else {
|
} else {
|
||||||
console.error("I don't know how to handle data type: " + type);
|
log("I don't know how to handle data type: " + type);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -37,3 +37,10 @@ var GUI = new function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Now we don't need to worry about console.log
|
||||||
|
var log = function(item) {
|
||||||
|
if(window.console)
|
||||||
|
if(trim(window.console.firebug) != '')
|
||||||
|
console.info(item);
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user