cocos2d/cocos2d-html5 — pull request #607 by ricardoquesada (2012-11-02 00:32:11+00:00)
Title: LayerColor and LayerGradient can be subclassed.

The same code can be used from JSB and HTML5.

As rule of thumb:
- if a class can be created with create(), then it can be initialized
with init()