File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
frameworks/js-bindings/bindings/script Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ cc.isString = function(obj) {
102
102
*/
103
103
cc . isArray = function ( obj ) {
104
104
return Array . isArray ( obj ) ||
105
- ( typeof obj === 'object' && Object . prototype . toString . call ( obj ) === '[object Array]' ) ;
105
+ ( typeof obj === 'object' && objectToString ( obj ) === '[object Array]' ) ;
106
106
} ;
107
107
108
108
/**
@@ -120,7 +120,8 @@ cc.isUndefined = function(obj) {
120
120
* @returns {boolean }
121
121
*/
122
122
cc . isObject = function ( obj ) {
123
- return typeof obj === "object" && Object . prototype . toString . call ( obj ) === '[object Object]' ;
123
+ return obj . __nativeObj !== undefined ||
124
+ ( typeof obj === "object" && Object . prototype . toString . call ( obj ) === '[object Object]' ) ;
124
125
} ;
125
126
126
127
/**
You can’t perform that action at this time.
0 commit comments