cocos2d/cocos2d-html5 — pull request #496 by ricardoquesada (2012-08-11 01:24:42+00:00)
Title: Changes needed to make it compatible with cocos2d + JS bindings

Added "cc.associateWithNative": It does nothing, but needed for compatibility.
MenuItem: Changed the API a bit:
-> OLD: setTarget NEW: setCallback
-> ToggleMenuItem: initializes with a list of items. The callback is
set manually later (I have some doubts about this change, but it
is a bit better than the previous one)
Animation: OLD: createWithSpriteFrames NEW: create
Geometry: Started the new "rectIntersection" API... but I have not
finished it yet.

Updates the tests.

These changes are needed for the MoonWarrior coco2d+js bindings version.

TODO in cocos2d-html5:
- Finish rect and size API and merge them in one file
- Since touches events are not avaible in cocos2d-html5, it should be renamed
to "mouse events"