{"action":"created","issue":{"url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/14","labels_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/14/comments","events_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/14/events","html_url":"https://github.com/fireball-x/cocos2d-html5/pull/14","id":111356149,"number":14,"title":"融合 cc.FireClass 和 cc.Class","user":{"login":"jareguo","id":1503156,"avatar_url":"https://avatars.githubusercontent.com/u/1503156?v=3","gravatar_id":"","url":"https://api.github.com/users/jareguo","html_url":"https://github.com/jareguo","followers_url":"https://api.github.com/users/jareguo/followers","following_url":"https://api.github.com/users/jareguo/following{/other_user}","gists_url":"https://api.github.com/users/jareguo/gists{/gist_id}","starred_url":"https://api.github.com/users/jareguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jareguo/subscriptions","organizations_url":"https://api.github.com/users/jareguo/orgs","repos_url":"https://api.github.com/users/jareguo/repos","events_url":"https://api.github.com/users/jareguo/events{/privacy}","received_events_url":"https://api.github.com/users/jareguo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-10-14T09:14:57Z","updated_at":"2015-10-15T04:06:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fireball-x/cocos2d-html5/pulls/14","html_url":"https://github.com/fireball-x/cocos2d-html5/pull/14","diff_url":"https://github.com/fireball-x/cocos2d-html5/pull/14.diff","patch_url":"https://github.com/fireball-x/cocos2d-html5/pull/14.patch"},"body":"[融合 cc.FireClass 和 cc.Class](https://github.com/fireball-x/fireball/issues/340)\r\n\r\n FireClass 支持 .extend 的调用方式\r\n FireClass 支持 _super 调用，禁止 ctor 调用 this._super()\r\n FireClass 的 constructor 字段改为 ctor，调用 {super}.prototype.ctor 时报警告\r\n cc.Class 改名 cc._Class, cc.FireClass 改名 cc.Class"},"comment":{"url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/comments/148275703","html_url":"https://github.com/fireball-x/cocos2d-html5/pull/14#issuecomment-148275703","issue_url":"https://api.github.com/repos/fireball-x/cocos2d-html5/issues/14","id":148275703,"user":{"login":"jareguo","id":1503156,"avatar_url":"https://avatars.githubusercontent.com/u/1503156?v=3","gravatar_id":"","url":"https://api.github.com/users/jareguo","html_url":"https://github.com/jareguo","followers_url":"https://api.github.com/users/jareguo/followers","following_url":"https://api.github.com/users/jareguo/following{/other_user}","gists_url":"https://api.github.com/users/jareguo/gists{/gist_id}","starred_url":"https://api.github.com/users/jareguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jareguo/subscriptions","organizations_url":"https://api.github.com/users/jareguo/orgs","repos_url":"https://api.github.com/users/jareguo/repos","events_url":"https://api.github.com/users/jareguo/events{/privacy}","received_events_url":"https://api.github.com/users/jareguo/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T04:06:07Z","updated_at":"2015-10-15T04:06:07Z","body":"没有偏差\r\n> 按顺序调用父类的ctor方法（为什么不按照_boundSuperCall的方法去做呢？）\r\n\r\n因为 0.4 以前在开发的时候，没有遇到过父类方法**不需要调用**的情况，我个人也不认为屏蔽父类方法是一个很好的设计。再加上反序列化时父类方法也不能传参数，所以就统一帮用户调用了，这样写 Component 脚本时会方便很多。\r\n\r\n> 使用eval来创建真正的构造函数\r\n\r\n为了不在每个对象的实例创建过程引入额外的开销，对象只需要初始化自身用到的字段(功能)即可，保证对象创建速度的最大化。"}}