Making cc.registerTargetDelegate and cc.registerStandardDelegate compatible with Cocos2d-html5.

This commit is contained in:
James Chen 2013-09-19 23:35:19 +08:00
parent dadf6b3d0b
commit a460f44a1a
3 changed files with 7 additions and 2 deletions

View File

@ -1 +1 @@
aa56b980468fda5b70dcbf37c09caf09b0b133a0
7756f6d4cf4b992057e4f9b619a10021af30cd11

View File

@ -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.

View File

@ -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);
};
})();