mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
handles properly
This commit is contained in:
parent
354eeb3c0b
commit
4d5febb0e5
2
gui.js
2
gui.js
@ -10,6 +10,7 @@ var GUI = new function() {
|
|||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
var handler = addHandlers[type];
|
var handler = addHandlers[type];
|
||||||
if (handler) {
|
if (handler) {
|
||||||
|
log(property.toString() + " is a " + type + " based GUI object");
|
||||||
} else {
|
} else {
|
||||||
log("I don't know how to handle data type: " + type);
|
log("I don't know how to handle data type: " + type);
|
||||||
}
|
}
|
||||||
@ -38,7 +39,6 @@ var GUI = new function() {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Now we don't need to worry about console.log
|
|
||||||
var log = function(item) {
|
var log = function(item) {
|
||||||
if(typeof console.log == 'function')
|
if(typeof console.log == 'function')
|
||||||
console.log(item);
|
console.log(item);
|
||||||
|
Loading…
Reference in New Issue
Block a user