{"action":"created","comment":{"url":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/comments/27524321","id":27524321,"diff_hunk":"@@ -417,28 +471,195 @@ - (instancetype)init\n {\n     self = [super init];\n     if ( self != nil ) {\n-        self.observers = [NSPointerArray pointerArrayWithOptions:(NSPointerFunctionsWeakMemory | NSPointerFunctionsOpaquePersonality)];\n+        _observers = [NSPointerArray pointerArrayWithOptions:(NSPointerFunctionsWeakMemory | NSPointerFunctionsOpaquePersonality)];\n     }\n     return self;\n }\n \n - (void)addObserver:(RZDBObserver *)observer\n {\n-    [self.observers addPointer:(__bridge void *)(observer)];\n+    @synchronized (self) {\n+        [self.observers addPointer:(__bridge void *)(observer)];\n+    }\n }\n \n - (void)removeObserver:(RZDBObserver *)observer\n {\n-    __block NSUInteger observerIndex = NSNotFound;\n-    [[self.observers allObjects] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {\n-        if ( obj == observer ) {\n-            observerIndex = idx;\n-            *stop = YES;\n+    @synchronized (self) {\n+        __block NSUInteger observerIndex = NSNotFound;\n+        [[self.observers allObjects] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {","path":"RZDataBinding/NSObject+RZDataBinding.m","position":338,"original_position":338,"commit_id":"84ded5d73e0b5aac53f68efef010aa9f56b37642","original_commit_id":"84ded5d73e0b5aac53f68efef010aa9f56b37642","user":{"login":"ZevEisenberg","id":464574,"avatar_url":"https://avatars.githubusercontent.com/u/464574?v=3","gravatar_id":"","url":"https://api.github.com/users/ZevEisenberg","html_url":"https://github.com/ZevEisenberg","followers_url":"https://api.github.com/users/ZevEisenberg/followers","following_url":"https://api.github.com/users/ZevEisenberg/following{/other_user}","gists_url":"https://api.github.com/users/ZevEisenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/ZevEisenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZevEisenberg/subscriptions","organizations_url":"https://api.github.com/users/ZevEisenberg/orgs","repos_url":"https://api.github.com/users/ZevEisenberg/repos","events_url":"https://api.github.com/users/ZevEisenberg/events{/privacy}","received_events_url":"https://api.github.com/users/ZevEisenberg/received_events","type":"User","site_admin":false},"body":"You can use `-indexOfObjectPassingTest`","created_at":"2015-03-31T21:19:49Z","updated_at":"2015-03-31T21:19:49Z","html_url":"https://github.com/Raizlabs/RZDataBinding/pull/28#discussion_r27524321","pull_request_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/comments/27524321"},"html":{"href":"https://github.com/Raizlabs/RZDataBinding/pull/28#discussion_r27524321"},"pull_request":{"href":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/28","id":32358934,"html_url":"https://github.com/Raizlabs/RZDataBinding/pull/28","diff_url":"https://github.com/Raizlabs/RZDataBinding/pull/28.diff","patch_url":"https://github.com/Raizlabs/RZDataBinding/pull/28.patch","issue_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues/28","number":28,"state":"open","locked":false,"title":"Feature/jvisenti/coalesce events","user":{"login":"jvisenti","id":1039147,"avatar_url":"https://avatars.githubusercontent.com/u/1039147?v=3","gravatar_id":"","url":"https://api.github.com/users/jvisenti","html_url":"https://github.com/jvisenti","followers_url":"https://api.github.com/users/jvisenti/followers","following_url":"https://api.github.com/users/jvisenti/following{/other_user}","gists_url":"https://api.github.com/users/jvisenti/gists{/gist_id}","starred_url":"https://api.github.com/users/jvisenti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvisenti/subscriptions","organizations_url":"https://api.github.com/users/jvisenti/orgs","repos_url":"https://api.github.com/users/jvisenti/repos","events_url":"https://api.github.com/users/jvisenti/events{/privacy}","received_events_url":"https://api.github.com/users/jvisenti/received_events","type":"User","site_admin":false},"body":"Added structure for coalescing callback events #21 \r\n\r\nAlso added the ability to specify a dispatch queue on which to receive callbacks.","created_at":"2015-03-31T19:51:45Z","updated_at":"2015-03-31T21:19:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a686ad0f4bd5d68cb793ed1e1cd5f583e9e09f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/28/commits","review_comments_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/28/comments","review_comment_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues/28/comments","statuses_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/statuses/84ded5d73e0b5aac53f68efef010aa9f56b37642","head":{"label":"Raizlabs:feature/jvisenti/coalesce-events","ref":"feature/jvisenti/coalesce-events","sha":"84ded5d73e0b5aac53f68efef010aa9f56b37642","user":{"login":"Raizlabs","id":621479,"avatar_url":"https://avatars.githubusercontent.com/u/621479?v=3","gravatar_id":"","url":"https://api.github.com/users/Raizlabs","html_url":"https://github.com/Raizlabs","followers_url":"https://api.github.com/users/Raizlabs/followers","following_url":"https://api.github.com/users/Raizlabs/following{/other_user}","gists_url":"https://api.github.com/users/Raizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Raizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raizlabs/subscriptions","organizations_url":"https://api.github.com/users/Raizlabs/orgs","repos_url":"https://api.github.com/users/Raizlabs/repos","events_url":"https://api.github.com/users/Raizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Raizlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":24234580,"name":"RZDataBinding","full_name":"Raizlabs/RZDataBinding","owner":{"login":"Raizlabs","id":621479,"avatar_url":"https://avatars.githubusercontent.com/u/621479?v=3","gravatar_id":"","url":"https://api.github.com/users/Raizlabs","html_url":"https://github.com/Raizlabs","followers_url":"https://api.github.com/users/Raizlabs/followers","following_url":"https://api.github.com/users/Raizlabs/following{/other_user}","gists_url":"https://api.github.com/users/Raizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Raizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raizlabs/subscriptions","organizations_url":"https://api.github.com/users/Raizlabs/orgs","repos_url":"https://api.github.com/users/Raizlabs/repos","events_url":"https://api.github.com/users/Raizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Raizlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Raizlabs/RZDataBinding","description":"Lightweight KVO-based data binding options.","fork":false,"url":"https://api.github.com/repos/Raizlabs/RZDataBinding","forks_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/forks","keys_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/teams","hooks_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/hooks","issue_events_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues/events{/number}","events_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/events","assignees_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/assignees{/user}","branches_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/branches{/branch}","tags_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/tags","blobs_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/refs{/sha}","trees_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/statuses/{sha}","languages_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/languages","stargazers_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/stargazers","contributors_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/contributors","subscribers_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/subscribers","subscription_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/subscription","commits_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/commits{/sha}","git_commits_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/commits{/sha}","comments_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/comments{/number}","issue_comment_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues/comments{/number}","contents_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/contents/{+path}","compare_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/merges","archive_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/downloads","issues_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues{/number}","pulls_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls{/number}","milestones_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/milestones{/number}","notifications_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/labels{/name}","releases_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/releases{/id}","created_at":"2014-09-19T15:15:16Z","updated_at":"2015-03-31T08:50:31Z","pushed_at":"2015-03-31T20:29:13Z","git_url":"git://github.com/Raizlabs/RZDataBinding.git","ssh_url":"git@github.com:Raizlabs/RZDataBinding.git","clone_url":"https://github.com/Raizlabs/RZDataBinding.git","svn_url":"https://github.com/Raizlabs/RZDataBinding","homepage":"","size":1549,"stargazers_count":111,"watchers_count":111,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":111,"default_branch":"master"}},"base":{"label":"Raizlabs:development","ref":"development","sha":"adfee2978a16b1ee64b39e787cc9a9546403a4e8","user":{"login":"Raizlabs","id":621479,"avatar_url":"https://avatars.githubusercontent.com/u/621479?v=3","gravatar_id":"","url":"https://api.github.com/users/Raizlabs","html_url":"https://github.com/Raizlabs","followers_url":"https://api.github.com/users/Raizlabs/followers","following_url":"https://api.github.com/users/Raizlabs/following{/other_user}","gists_url":"https://api.github.com/users/Raizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Raizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raizlabs/subscriptions","organizations_url":"https://api.github.com/users/Raizlabs/orgs","repos_url":"https://api.github.com/users/Raizlabs/repos","events_url":"https://api.github.com/users/Raizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Raizlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":24234580,"name":"RZDataBinding","full_name":"Raizlabs/RZDataBinding","owner":{"login":"Raizlabs","id":621479,"avatar_url":"https://avatars.githubusercontent.com/u/621479?v=3","gravatar_id":"","url":"https://api.github.com/users/Raizlabs","html_url":"https://github.com/Raizlabs","followers_url":"https://api.github.com/users/Raizlabs/followers","following_url":"https://api.github.com/users/Raizlabs/following{/other_user}","gists_url":"https://api.github.com/users/Raizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/Raizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raizlabs/subscriptions","organizations_url":"https://api.github.com/users/Raizlabs/orgs","repos_url":"https://api.github.com/users/Raizlabs/repos","events_url":"https://api.github.com/users/Raizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/Raizlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Raizlabs/RZDataBinding","description":"Lightweight KVO-based data binding options.","fork":false,"url":"https://api.github.com/repos/Raizlabs/RZDataBinding","forks_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/forks","keys_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/teams","hooks_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/hooks","issue_events_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues/events{/number}","events_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/events","assignees_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/assignees{/user}","branches_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/branches{/branch}","tags_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/tags","blobs_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/refs{/sha}","trees_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/statuses/{sha}","languages_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/languages","stargazers_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/stargazers","contributors_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/contributors","subscribers_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/subscribers","subscription_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/subscription","commits_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/commits{/sha}","git_commits_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/git/commits{/sha}","comments_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/comments{/number}","issue_comment_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues/comments{/number}","contents_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/contents/{+path}","compare_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/merges","archive_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/downloads","issues_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues{/number}","pulls_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls{/number}","milestones_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/milestones{/number}","notifications_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/labels{/name}","releases_url":"https://api.github.com/repos/Raizlabs/RZDataBinding/releases{/id}","created_at":"2014-09-19T15:15:16Z","updated_at":"2015-03-31T08:50:31Z","pushed_at":"2015-03-31T20:29:13Z","git_url":"git://github.com/Raizlabs/RZDataBinding.git","ssh_url":"git@github.com:Raizlabs/RZDataBinding.git","clone_url":"https://github.com/Raizlabs/RZDataBinding.git","svn_url":"https://github.com/Raizlabs/RZDataBinding","homepage":"","size":1549,"stargazers_count":111,"watchers_count":111,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":111,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/28"},"html":{"href":"https://github.com/Raizlabs/RZDataBinding/pull/28"},"issue":{"href":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues/28"},"comments":{"href":"https://api.github.com/repos/Raizlabs/RZDataBinding/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Raizlabs/RZDataBinding/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/Raizlabs/RZDataBinding/statuses/84ded5d73e0b5aac53f68efef010aa9f56b37642"}}}}