cocos2d/cocos2d-html5 — pull request #598 by ricardoquesada (2012-10-25 21:50:27+00:00)
Title: Compatibility fixes

Adds new rect functions that are compatible with JSB:

``` javascript
// Rect compatibility API
cc.rectEqualToRect = cc.Rect.CCRectEqualToRect;
cc.rectContainsRect = cc.Rect.CCRectContainsRect;
cc.rectGetMaxX = cc.Rect.CCRectGetMaxX;
cc.rectGetMidX = cc.Rect.CCRectGetMidX;
cc.rectGetMinX = cc.Rect.CCRectGetMinX;
cc.rectGetMaxY = cc.Rect.CCRectGetMaxY;
cc.rectGetMidY = cc.Rect.CCRectGetMidY;
cc.rectGetMinY = cc.Rect.CCRectGetMinY;
cc.rectContainsPoint = cc.Rect.CCRectContainsPoint;
cc.rectIntersectsRect = cc.Rect.CCRectIntersectsRect;
cc.rectUnion = cc.Rect.CCRectUnion;
cc.rectIntersection = cc.Rect.CCRectIntersection;
```

And also adds `cc.base` and `cc.inherits` for JSB compatibility