mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 04:14:52 +08:00
updated global object utilities
This commit is contained in:
@@ -131,7 +131,7 @@ Kinetic.GlobalObject = {
|
||||
}
|
||||
},
|
||||
/*
|
||||
* cherry-picked and modified utilities from underscore.js
|
||||
* cherry-picked utilities from underscore.js
|
||||
*/
|
||||
_isElement: function(obj) {
|
||||
return !!(obj && obj.nodeType == 1);
|
||||
@@ -143,6 +143,7 @@ Kinetic.GlobalObject = {
|
||||
return Object.prototype.toString.call(obj) == '[object Array]';
|
||||
},
|
||||
_isObject: function(obj) {
|
||||
//return obj === Object(obj);
|
||||
return (obj !== undefined && obj.constructor == Object);
|
||||
},
|
||||
_isNumber: function(obj) {
|
||||
|
Reference in New Issue
Block a user