mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Teach utils that async functions are still functions
This commit is contained in:
parent
743a16b398
commit
096993eb6e
@ -149,7 +149,7 @@ const Common = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
isFunction: function(obj) {
|
isFunction: function(obj) {
|
||||||
return Object.prototype.toString.call(obj) === '[object Function]';
|
return obj instanceof Function;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user