diff --git a/cocos/scripting/javascript/script/jsb_cocos2d.js b/cocos/scripting/javascript/script/jsb_cocos2d.js index 8149eaffab..2ab020b08a 100644 --- a/cocos/scripting/javascript/script/jsb_cocos2d.js +++ b/cocos/scripting/javascript/script/jsb_cocos2d.js @@ -652,7 +652,7 @@ cc.Class.extend = function (prop) { // All construction is actually done in the init method if (!initializing) { if (!this.ctor) { - if (this._is_nativeObj) + if (this.__nativeObj) cc.log("No ctor function found! Please check whether `classes_need_extend` section in `ini` file like which in `tools/tojs/cocos2dx.ini`"); } else {