diff --git a/scripting/javascript/bindings/cocos2d_specifics.cpp.REMOVED.git-id b/scripting/javascript/bindings/cocos2d_specifics.cpp.REMOVED.git-id index 4fd8113038..ec646e0263 100644 --- a/scripting/javascript/bindings/cocos2d_specifics.cpp.REMOVED.git-id +++ b/scripting/javascript/bindings/cocos2d_specifics.cpp.REMOVED.git-id @@ -1 +1 @@ -aa56b980468fda5b70dcbf37c09caf09b0b133a0 \ No newline at end of file +7756f6d4cf4b992057e4f9b619a10021af30cd11 \ No newline at end of file diff --git a/scripting/javascript/bindings/cocos2d_specifics.hpp b/scripting/javascript/bindings/cocos2d_specifics.hpp index 9668d213e0..72b452a73e 100644 --- a/scripting/javascript/bindings/cocos2d_specifics.hpp +++ b/scripting/javascript/bindings/cocos2d_specifics.hpp @@ -195,7 +195,7 @@ public: void setJSObject(JSObject *obj); void registerStandardDelegate(int priority); - void registerTargettedDelegate(int priority, bool swallowsTouches); + void registerTargetedDelegate(int priority, bool swallowsTouches); // unregister touch delegate. // Normally, developer should invoke cc.unregisterTouchDelegate() in when the scene exits. // So this function need to be binded. diff --git a/scripting/javascript/bindings/js/jsb_deprecated.js b/scripting/javascript/bindings/js/jsb_deprecated.js index 4211bc12af..2c7a7b1ed1 100644 --- a/scripting/javascript/bindings/js/jsb_deprecated.js +++ b/scripting/javascript/bindings/js/jsb_deprecated.js @@ -74,4 +74,9 @@ var cc = cc || {}; return cc.Layer.prototype.isKeyboardEnabled.apply(this, arguments); }; + cc.registerTargettedDelegate = function() { + logW("cc.registerTargettedDelegate", "cc.registerTargetedDelegate"); + return cc.registerTargetedDelegate.apply(this, arguments); + }; + })();