From 6ecc8d37c50643219bc7957a406290a6202c1e2f Mon Sep 17 00:00:00 2001 From: James Chen Date: Sun, 26 Jan 2014 14:45:45 +0800 Subject: [PATCH] Fix a typo, this._is_nativeObj -> this.__nativeObj. --- cocos/scripting/javascript/script/jsb_cocos2d.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {