cocos2d/cocos2d-html5 — pull request #2143 by layerssss (2014-08-20 06:19:44+00:00)
Title: calling super via `_super_METHOD_NAME`

Hi, this is a proposal patch to fix #1266,

It's trying to bind all overridden parent functions as `_super_METHOD_NAME`. This syntax looks a little ugly but it seems we have to use this string-concatenation approach. Because:

* it's hard to bind 2-depth property into prototype
* if we let the syntax be `this._super.method_name`. Then the method should be called on `this._super` instead of `this`. (Although we can user `function.bind` trick, but we shouldn't, because it is the JavaScript convention.)

This patch introduced a little incompatibility:

* if any user code try to extends framework classes, AND used the `this._super(...)` syntax. It would yield a deprecation error.