mirror of https://github.com/axmolengine/axmol.git
Making cc.registerTargetDelegate and cc.registerStandardDelegate compatible with Cocos2d-html5.
This commit is contained in:
parent
dadf6b3d0b
commit
a460f44a1a
|
@ -1 +1 @@
|
|||
aa56b980468fda5b70dcbf37c09caf09b0b133a0
|
||||
7756f6d4cf4b992057e4f9b619a10021af30cd11
|
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue