cocos2d/cocos2d-x — pull request #5702 by dumganhar (2014-03-12 06:45:33+00:00)
Title: Changes the order of inheritance for GLView. Reason:

```
bool ok = true;
JSObject *obj = JS_THIS_OBJECT(cx, vp);
js_proxy_t *proxy = jsb_get_js_proxy(obj);
cocos2d::GLViewProtocol* cobj = (cocos2d::GLViewProtocol *)(proxy ? proxy->ptr : NULL); // This line will cause the 'cobj' to be an invalid object, since the instance is a 'GLView', but we force cast it to 'GLViewProtocol*'.
JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_GLViewProtocol_setDesignResolutionSize : Invalid Native Object");
if (argc == 3) {
double arg0;

```
After changing the order, the bug could be fixed. But I don't know whether it's the best way to fix it. Anyway, it wouldn't break anything right now.