{"action":"created","issue":{"url":"https://api.github.com/repos/bang590/JSPatch/issues/628","repository_url":"https://api.github.com/repos/bang590/JSPatch","labels_url":"https://api.github.com/repos/bang590/JSPatch/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/bang590/JSPatch/issues/628/comments","events_url":"https://api.github.com/repos/bang590/JSPatch/issues/628/events","html_url":"https://github.com/bang590/JSPatch/pull/628","id":189608107,"number":628,"title":"Support chained function call when return values is Class .","user":{"login":"YauzZ","id":141738,"avatar_url":"https://avatars.githubusercontent.com/u/141738?v=3","gravatar_id":"","url":"https://api.github.com/users/YauzZ","html_url":"https://github.com/YauzZ","followers_url":"https://api.github.com/users/YauzZ/followers","following_url":"https://api.github.com/users/YauzZ/following{/other_user}","gists_url":"https://api.github.com/users/YauzZ/gists{/gist_id}","starred_url":"https://api.github.com/users/YauzZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YauzZ/subscriptions","organizations_url":"https://api.github.com/users/YauzZ/orgs","repos_url":"https://api.github.com/users/YauzZ/repos","events_url":"https://api.github.com/users/YauzZ/events{/privacy}","received_events_url":"https://api.github.com/users/YauzZ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-16T06:45:13Z","updated_at":"2017-01-13T12:12:48Z","closed_at":"2016-12-01T06:38:46Z","pull_request":{"url":"https://api.github.com/repos/bang590/JSPatch/pulls/628","html_url":"https://github.com/bang590/JSPatch/pull/628","diff_url":"https://github.com/bang590/JSPatch/pull/628.diff","patch_url":"https://github.com/bang590/JSPatch/pull/628.patch"},"body":"Add test case ."},"comment":{"url":"https://api.github.com/repos/bang590/JSPatch/issues/comments/272429624","html_url":"https://github.com/bang590/JSPatch/pull/628#issuecomment-272429624","issue_url":"https://api.github.com/repos/bang590/JSPatch/issues/628","id":272429624,"user":{"login":"bang590","id":329480,"avatar_url":"https://avatars.githubusercontent.com/u/329480?v=3","gravatar_id":"","url":"https://api.github.com/users/bang590","html_url":"https://github.com/bang590","followers_url":"https://api.github.com/users/bang590/followers","following_url":"https://api.github.com/users/bang590/following{/other_user}","gists_url":"https://api.github.com/users/bang590/gists{/gist_id}","starred_url":"https://api.github.com/users/bang590/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bang590/subscriptions","organizations_url":"https://api.github.com/users/bang590/orgs","repos_url":"https://api.github.com/users/bang590/repos","events_url":"https://api.github.com/users/bang590/events{/privacy}","received_events_url":"https://api.github.com/users/bang590/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T12:12:48Z","updated_at":"2017-01-13T12:12:48Z","body":"这里的实现这种情况会有问题：\r\n```\r\n@implementation TestCls\r\n- (void)init\r\n{\r\n   .....\r\n   [self callWithClass:NSClassFromString(@\"NSObject\")];\r\n}\r\n- (void)callWithClass:(Class)cls\r\n{\r\n    [self receiveClass:cls];\r\n}\r\n\r\n- (void)receiveClass:(Class)cls\r\n{\r\n    NSLog(@\"cls %@\", cls);\r\n}\r\n@end\r\n```\r\n\r\n```\r\ndefineClass('TestCls', {\r\n  callWithClass: function(cls) {\r\n      self.receiveClass(cls);  //这里的cls是box后的NSDictionary\r\n  }\r\n})\r\n```\r\n\r\n沿用这种方式去修补碰到其他坑，没有必要，回滚了代码换另一种方式实现：d850cfcef446b00bafd56e20e7fbd4d8d72c35a4\r\n"}}
{"actor":{"display_login":"bang590"}}