{"action":"created","comment":{"url":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/comments/57309015","id":57309015,"diff_hunk":"@@ -693,31 +688,52 @@\n      * Triggering\n      */\n \n-    on: function (name, handler) {\n-      if (this.__bindings.hasOwnProperty(name))\n-        this.__bindings[name].push(handler);\n-      else\n-        this.__bindings[name] = [handler];\n+    on: function (name, handler, context, once) {\n+      if (context === null)\n+        context = undefined;\n+      if (!this.__bindings.hasOwnProperty(name))\n+        this.__bindings[name] = [];\n+      this.__bindings[name] = this.__bindings[name].concat([\n+        [handler, context, Boolean(once)]\n+      ]);\n     },\n \n-    off: function (name, handler) {\n+    off: function (name, handler, context) {\n+      if (context === null)\n+        context = undefined;\n       if (!this.__bindings.hasOwnProperty(name))\n         return;\n-      var index = $.inArray(handler, this.__bindings[name]);\n-      if (index !== -1)\n-        this.__bindings[name].splice(index, 1);\n+      this.__bindings[name] = this.__bindings[name].filter(function (listener) {","path":"dist/realtime.js","position":195,"original_position":195,"commit_id":"0ded68ae0d1c7558f33e9ec2d9a2a64a6fc16cc7","original_commit_id":"0ded68ae0d1c7558f33e9ec2d9a2a64a6fc16cc7","user":{"login":"matghaleb","id":917532,"avatar_url":"https://avatars.githubusercontent.com/u/917532?v=3","gravatar_id":"","url":"https://api.github.com/users/matghaleb","html_url":"https://github.com/matghaleb","followers_url":"https://api.github.com/users/matghaleb/followers","following_url":"https://api.github.com/users/matghaleb/following{/other_user}","gists_url":"https://api.github.com/users/matghaleb/gists{/gist_id}","starred_url":"https://api.github.com/users/matghaleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matghaleb/subscriptions","organizations_url":"https://api.github.com/users/matghaleb/orgs","repos_url":"https://api.github.com/users/matghaleb/repos","events_url":"https://api.github.com/users/matghaleb/events{/privacy}","received_events_url":"https://api.github.com/users/matghaleb/received_events","type":"User","site_admin":false},"body":"Array.prototype.filter is not supported by IE < 9","created_at":"2016-03-24T12:23:22Z","updated_at":"2016-03-24T12:23:22Z","html_url":"https://github.com/Wisembly/vendor-realtime/pull/2#discussion_r57309015","pull_request_url":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/comments/57309015"},"html":{"href":"https://github.com/Wisembly/vendor-realtime/pull/2#discussion_r57309015"},"pull_request":{"href":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/2","id":63741383,"html_url":"https://github.com/Wisembly/vendor-realtime/pull/2","diff_url":"https://github.com/Wisembly/vendor-realtime/pull/2.diff","patch_url":"https://github.com/Wisembly/vendor-realtime/pull/2.patch","issue_url":"https://api.github.com/repos/Wisembly/vendor-realtime/issues/2","number":2,"state":"open","locked":false,"title":"Adds optional callbacks","user":{"login":"arcanis","id":1037931,"avatar_url":"https://avatars.githubusercontent.com/u/1037931?v=3","gravatar_id":"","url":"https://api.github.com/users/arcanis","html_url":"https://github.com/arcanis","followers_url":"https://api.github.com/users/arcanis/followers","following_url":"https://api.github.com/users/arcanis/following{/other_user}","gists_url":"https://api.github.com/users/arcanis/gists{/gist_id}","starred_url":"https://api.github.com/users/arcanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcanis/subscriptions","organizations_url":"https://api.github.com/users/arcanis/orgs","repos_url":"https://api.github.com/users/arcanis/repos","events_url":"https://api.github.com/users/arcanis/events{/privacy}","received_events_url":"https://api.github.com/users/arcanis/received_events","type":"User","site_admin":false},"body":"Ping @matghaleb, what do you think?","created_at":"2016-03-22T15:40:02Z","updated_at":"2016-03-24T12:23:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"551fe2d5f09efc7bd17c04477170dc71bed79da2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wisembly/vendor-realtime/issues/2/comments","statuses_url":"https://api.github.com/repos/Wisembly/vendor-realtime/statuses/0ded68ae0d1c7558f33e9ec2d9a2a64a6fc16cc7","head":{"label":"Wisembly:feature-callbacks","ref":"feature-callbacks","sha":"0ded68ae0d1c7558f33e9ec2d9a2a64a6fc16cc7","user":{"login":"Wisembly","id":540215,"avatar_url":"https://avatars.githubusercontent.com/u/540215?v=3","gravatar_id":"","url":"https://api.github.com/users/Wisembly","html_url":"https://github.com/Wisembly","followers_url":"https://api.github.com/users/Wisembly/followers","following_url":"https://api.github.com/users/Wisembly/following{/other_user}","gists_url":"https://api.github.com/users/Wisembly/gists{/gist_id}","starred_url":"https://api.github.com/users/Wisembly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wisembly/subscriptions","organizations_url":"https://api.github.com/users/Wisembly/orgs","repos_url":"https://api.github.com/users/Wisembly/repos","events_url":"https://api.github.com/users/Wisembly/events{/privacy}","received_events_url":"https://api.github.com/users/Wisembly/received_events","type":"Organization","site_admin":false},"repo":{"id":28969848,"name":"vendor-realtime","full_name":"Wisembly/vendor-realtime","owner":{"login":"Wisembly","id":540215,"avatar_url":"https://avatars.githubusercontent.com/u/540215?v=3","gravatar_id":"","url":"https://api.github.com/users/Wisembly","html_url":"https://github.com/Wisembly","followers_url":"https://api.github.com/users/Wisembly/followers","following_url":"https://api.github.com/users/Wisembly/following{/other_user}","gists_url":"https://api.github.com/users/Wisembly/gists{/gist_id}","starred_url":"https://api.github.com/users/Wisembly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wisembly/subscriptions","organizations_url":"https://api.github.com/users/Wisembly/orgs","repos_url":"https://api.github.com/users/Wisembly/repos","events_url":"https://api.github.com/users/Wisembly/events{/privacy}","received_events_url":"https://api.github.com/users/Wisembly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wisembly/vendor-realtime","description":"Realtime javascript client used between Wisembly and Solid","fork":false,"url":"https://api.github.com/repos/Wisembly/vendor-realtime","forks_url":"https://api.github.com/repos/Wisembly/vendor-realtime/forks","keys_url":"https://api.github.com/repos/Wisembly/vendor-realtime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wisembly/vendor-realtime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wisembly/vendor-realtime/teams","hooks_url":"https://api.github.com/repos/Wisembly/vendor-realtime/hooks","issue_events_url":"https://api.github.com/repos/Wisembly/vendor-realtime/issues/events{/number}","events_url":"https://api.github.com/repos/Wisembly/vendor-realtime/events","assignees_url":"https://api.github.com/repos/Wisembly/vendor-realtime/assignees{/user}","branches_url":"https://api.github.com/repos/Wisembly/vendor-realtime/branches{/branch}","tags_url":"https://api.github.com/repos/Wisembly/vendor-realtime/tags","blobs_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wisembly/vendor-realtime/statuses/{sha}","languages_url":"https://api.github.com/repos/Wisembly/vendor-realtime/languages","stargazers_url":"https://api.github.com/repos/Wisembly/vendor-realtime/stargazers","contributors_url":"https://api.github.com/repos/Wisembly/vendor-realtime/contributors","subscribers_url":"https://api.github.com/repos/Wisembly/vendor-realtime/subscribers","subscription_url":"https://api.github.com/repos/Wisembly/vendor-realtime/subscription","commits_url":"https://api.github.com/repos/Wisembly/vendor-realtime/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wisembly/vendor-realtime/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wisembly/vendor-realtime/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wisembly/vendor-realtime/contents/{+path}","compare_url":"https://api.github.com/repos/Wisembly/vendor-realtime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wisembly/vendor-realtime/merges","archive_url":"https://api.github.com/repos/Wisembly/vendor-realtime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wisembly/vendor-realtime/downloads","issues_url":"https://api.github.com/repos/Wisembly/vendor-realtime/issues{/number}","pulls_url":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls{/number}","milestones_url":"https://api.github.com/repos/Wisembly/vendor-realtime/milestones{/number}","notifications_url":"https://api.github.com/repos/Wisembly/vendor-realtime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wisembly/vendor-realtime/labels{/name}","releases_url":"https://api.github.com/repos/Wisembly/vendor-realtime/releases{/id}","deployments_url":"https://api.github.com/repos/Wisembly/vendor-realtime/deployments","created_at":"2015-01-08T14:36:36Z","updated_at":"2016-01-23T16:28:15Z","pushed_at":"2016-03-24T11:05:09Z","git_url":"git://github.com/Wisembly/vendor-realtime.git","ssh_url":"git@github.com:Wisembly/vendor-realtime.git","clone_url":"https://github.com/Wisembly/vendor-realtime.git","svn_url":"https://github.com/Wisembly/vendor-realtime","homepage":null,"size":106,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"Wisembly:master","ref":"master","sha":"ed1036bcb04657f5e3d63d06f547ee6f4750d8dc","user":{"login":"Wisembly","id":540215,"avatar_url":"https://avatars.githubusercontent.com/u/540215?v=3","gravatar_id":"","url":"https://api.github.com/users/Wisembly","html_url":"https://github.com/Wisembly","followers_url":"https://api.github.com/users/Wisembly/followers","following_url":"https://api.github.com/users/Wisembly/following{/other_user}","gists_url":"https://api.github.com/users/Wisembly/gists{/gist_id}","starred_url":"https://api.github.com/users/Wisembly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wisembly/subscriptions","organizations_url":"https://api.github.com/users/Wisembly/orgs","repos_url":"https://api.github.com/users/Wisembly/repos","events_url":"https://api.github.com/users/Wisembly/events{/privacy}","received_events_url":"https://api.github.com/users/Wisembly/received_events","type":"Organization","site_admin":false},"repo":{"id":28969848,"name":"vendor-realtime","full_name":"Wisembly/vendor-realtime","owner":{"login":"Wisembly","id":540215,"avatar_url":"https://avatars.githubusercontent.com/u/540215?v=3","gravatar_id":"","url":"https://api.github.com/users/Wisembly","html_url":"https://github.com/Wisembly","followers_url":"https://api.github.com/users/Wisembly/followers","following_url":"https://api.github.com/users/Wisembly/following{/other_user}","gists_url":"https://api.github.com/users/Wisembly/gists{/gist_id}","starred_url":"https://api.github.com/users/Wisembly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wisembly/subscriptions","organizations_url":"https://api.github.com/users/Wisembly/orgs","repos_url":"https://api.github.com/users/Wisembly/repos","events_url":"https://api.github.com/users/Wisembly/events{/privacy}","received_events_url":"https://api.github.com/users/Wisembly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wisembly/vendor-realtime","description":"Realtime javascript client used between Wisembly and Solid","fork":false,"url":"https://api.github.com/repos/Wisembly/vendor-realtime","forks_url":"https://api.github.com/repos/Wisembly/vendor-realtime/forks","keys_url":"https://api.github.com/repos/Wisembly/vendor-realtime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wisembly/vendor-realtime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wisembly/vendor-realtime/teams","hooks_url":"https://api.github.com/repos/Wisembly/vendor-realtime/hooks","issue_events_url":"https://api.github.com/repos/Wisembly/vendor-realtime/issues/events{/number}","events_url":"https://api.github.com/repos/Wisembly/vendor-realtime/events","assignees_url":"https://api.github.com/repos/Wisembly/vendor-realtime/assignees{/user}","branches_url":"https://api.github.com/repos/Wisembly/vendor-realtime/branches{/branch}","tags_url":"https://api.github.com/repos/Wisembly/vendor-realtime/tags","blobs_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wisembly/vendor-realtime/statuses/{sha}","languages_url":"https://api.github.com/repos/Wisembly/vendor-realtime/languages","stargazers_url":"https://api.github.com/repos/Wisembly/vendor-realtime/stargazers","contributors_url":"https://api.github.com/repos/Wisembly/vendor-realtime/contributors","subscribers_url":"https://api.github.com/repos/Wisembly/vendor-realtime/subscribers","subscription_url":"https://api.github.com/repos/Wisembly/vendor-realtime/subscription","commits_url":"https://api.github.com/repos/Wisembly/vendor-realtime/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wisembly/vendor-realtime/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wisembly/vendor-realtime/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wisembly/vendor-realtime/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wisembly/vendor-realtime/contents/{+path}","compare_url":"https://api.github.com/repos/Wisembly/vendor-realtime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wisembly/vendor-realtime/merges","archive_url":"https://api.github.com/repos/Wisembly/vendor-realtime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wisembly/vendor-realtime/downloads","issues_url":"https://api.github.com/repos/Wisembly/vendor-realtime/issues{/number}","pulls_url":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls{/number}","milestones_url":"https://api.github.com/repos/Wisembly/vendor-realtime/milestones{/number}","notifications_url":"https://api.github.com/repos/Wisembly/vendor-realtime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wisembly/vendor-realtime/labels{/name}","releases_url":"https://api.github.com/repos/Wisembly/vendor-realtime/releases{/id}","deployments_url":"https://api.github.com/repos/Wisembly/vendor-realtime/deployments","created_at":"2015-01-08T14:36:36Z","updated_at":"2016-01-23T16:28:15Z","pushed_at":"2016-03-24T11:05:09Z","git_url":"git://github.com/Wisembly/vendor-realtime.git","ssh_url":"git@github.com:Wisembly/vendor-realtime.git","clone_url":"https://github.com/Wisembly/vendor-realtime.git","svn_url":"https://github.com/Wisembly/vendor-realtime","homepage":null,"size":106,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/2"},"html":{"href":"https://github.com/Wisembly/vendor-realtime/pull/2"},"issue":{"href":"https://api.github.com/repos/Wisembly/vendor-realtime/issues/2"},"comments":{"href":"https://api.github.com/repos/Wisembly/vendor-realtime/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wisembly/vendor-realtime/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Wisembly/vendor-realtime/statuses/0ded68ae0d1c7558f33e9ec2d9a2a64a6fc16cc7"}}}}