{"action":"created","comment":{"url":"https://api.github.com/repos/mobify/bellows/pulls/comments/22691381","id":22691381,"diff_hunk":"@@ -52,6 +52,12 @@\n             this._bindEvents();\n         },\n \n+        destroy: function() {\n+            this.$bellows\n+                .removeData(this.name)\n+                .off(this.options.event);","path":"src/js/bellows.js","position":7,"original_position":7,"commit_id":"c3eb0c72a9a02482294de873aa652ec4c1ee1fd5","original_commit_id":"c3eb0c72a9a02482294de873aa652ec4c1ee1fd5","user":{"login":"tedtate","id":136145,"avatar_url":"https://avatars.githubusercontent.com/u/136145?v=3","gravatar_id":"","url":"https://api.github.com/users/tedtate","html_url":"https://github.com/tedtate","followers_url":"https://api.github.com/users/tedtate/followers","following_url":"https://api.github.com/users/tedtate/following{/other_user}","gists_url":"https://api.github.com/users/tedtate/gists{/gist_id}","starred_url":"https://api.github.com/users/tedtate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedtate/subscriptions","organizations_url":"https://api.github.com/users/tedtate/orgs","repos_url":"https://api.github.com/users/tedtate/repos","events_url":"https://api.github.com/users/tedtate/events{/privacy}","received_events_url":"https://api.github.com/users/tedtate/received_events","type":"User","site_admin":false},"body":"Should call off with the function that we want to unbind. Otherwise all handlers that are bound to $bellows of this type will get nuked.","created_at":"2015-01-08T23:22:35Z","updated_at":"2015-01-08T23:22:35Z","html_url":"https://github.com/mobify/bellows/pull/52#discussion_r22691381","pull_request_url":"https://api.github.com/repos/mobify/bellows/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/mobify/bellows/pulls/comments/22691381"},"html":{"href":"https://github.com/mobify/bellows/pull/52#discussion_r22691381"},"pull_request":{"href":"https://api.github.com/repos/mobify/bellows/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/mobify/bellows/pulls/52","id":26838970,"html_url":"https://github.com/mobify/bellows/pull/52","diff_url":"https://github.com/mobify/bellows/pull/52.diff","patch_url":"https://github.com/mobify/bellows/pull/52.patch","issue_url":"https://api.github.com/repos/mobify/bellows/issues/52","number":52,"state":"open","locked":false,"title":"Destroy","user":{"login":"scalvert","id":180990,"avatar_url":"https://avatars.githubusercontent.com/u/180990?v=3","gravatar_id":"","url":"https://api.github.com/users/scalvert","html_url":"https://github.com/scalvert","followers_url":"https://api.github.com/users/scalvert/followers","following_url":"https://api.github.com/users/scalvert/following{/other_user}","gists_url":"https://api.github.com/users/scalvert/gists{/gist_id}","starred_url":"https://api.github.com/users/scalvert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalvert/subscriptions","organizations_url":"https://api.github.com/users/scalvert/orgs","repos_url":"https://api.github.com/users/scalvert/repos","events_url":"https://api.github.com/users/scalvert/events{/privacy}","received_events_url":"https://api.github.com/users/scalvert/received_events","type":"User","site_admin":false},"body":"Adding a destroy function similar to other plugins, and updating tests.\r\n\r\nStatus: **Ready to merge**\r\n\r\nReviewers: @tedtate \r\n\r\n## Changes\r\n- Added `destroy` function\r\n- Updated tests to use `destroy`\r\n\r\n## How to test-drive this PR\r\n- checkout this branch\r\n- `grunt test`\r\n- `grunt serve` and make sure stuff isn't broken\r\n","created_at":"2015-01-05T17:49:57Z","updated_at":"2015-01-08T23:22:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3e4bba177ce26f5411545665174953319eb5c16","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mobify/bellows/pulls/52/commits","review_comments_url":"https://api.github.com/repos/mobify/bellows/pulls/52/comments","review_comment_url":"https://api.github.com/repos/mobify/bellows/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mobify/bellows/issues/52/comments","statuses_url":"https://api.github.com/repos/mobify/bellows/statuses/c3eb0c72a9a02482294de873aa652ec4c1ee1fd5","head":{"label":"mobify:destroy","ref":"destroy","sha":"c3eb0c72a9a02482294de873aa652ec4c1ee1fd5","user":{"login":"mobify","id":73539,"avatar_url":"https://avatars.githubusercontent.com/u/73539?v=3","gravatar_id":"","url":"https://api.github.com/users/mobify","html_url":"https://github.com/mobify","followers_url":"https://api.github.com/users/mobify/followers","following_url":"https://api.github.com/users/mobify/following{/other_user}","gists_url":"https://api.github.com/users/mobify/gists{/gist_id}","starred_url":"https://api.github.com/users/mobify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobify/subscriptions","organizations_url":"https://api.github.com/users/mobify/orgs","repos_url":"https://api.github.com/users/mobify/repos","events_url":"https://api.github.com/users/mobify/events{/privacy}","received_events_url":"https://api.github.com/users/mobify/received_events","type":"Organization","site_admin":false},"repo":{"id":11553078,"name":"bellows","full_name":"mobify/bellows","owner":{"login":"mobify","id":73539,"avatar_url":"https://avatars.githubusercontent.com/u/73539?v=3","gravatar_id":"","url":"https://api.github.com/users/mobify","html_url":"https://github.com/mobify","followers_url":"https://api.github.com/users/mobify/followers","following_url":"https://api.github.com/users/mobify/following{/other_user}","gists_url":"https://api.github.com/users/mobify/gists{/gist_id}","starred_url":"https://api.github.com/users/mobify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobify/subscriptions","organizations_url":"https://api.github.com/users/mobify/orgs","repos_url":"https://api.github.com/users/mobify/repos","events_url":"https://api.github.com/users/mobify/events{/privacy}","received_events_url":"https://api.github.com/users/mobify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mobify/bellows","description":"A responsive, mobile-first accordion UI module for progressive disclosure on the web.","fork":false,"url":"https://api.github.com/repos/mobify/bellows","forks_url":"https://api.github.com/repos/mobify/bellows/forks","keys_url":"https://api.github.com/repos/mobify/bellows/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mobify/bellows/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mobify/bellows/teams","hooks_url":"https://api.github.com/repos/mobify/bellows/hooks","issue_events_url":"https://api.github.com/repos/mobify/bellows/issues/events{/number}","events_url":"https://api.github.com/repos/mobify/bellows/events","assignees_url":"https://api.github.com/repos/mobify/bellows/assignees{/user}","branches_url":"https://api.github.com/repos/mobify/bellows/branches{/branch}","tags_url":"https://api.github.com/repos/mobify/bellows/tags","blobs_url":"https://api.github.com/repos/mobify/bellows/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mobify/bellows/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mobify/bellows/git/refs{/sha}","trees_url":"https://api.github.com/repos/mobify/bellows/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mobify/bellows/statuses/{sha}","languages_url":"https://api.github.com/repos/mobify/bellows/languages","stargazers_url":"https://api.github.com/repos/mobify/bellows/stargazers","contributors_url":"https://api.github.com/repos/mobify/bellows/contributors","subscribers_url":"https://api.github.com/repos/mobify/bellows/subscribers","subscription_url":"https://api.github.com/repos/mobify/bellows/subscription","commits_url":"https://api.github.com/repos/mobify/bellows/commits{/sha}","git_commits_url":"https://api.github.com/repos/mobify/bellows/git/commits{/sha}","comments_url":"https://api.github.com/repos/mobify/bellows/comments{/number}","issue_comment_url":"https://api.github.com/repos/mobify/bellows/issues/comments/{number}","contents_url":"https://api.github.com/repos/mobify/bellows/contents/{+path}","compare_url":"https://api.github.com/repos/mobify/bellows/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mobify/bellows/merges","archive_url":"https://api.github.com/repos/mobify/bellows/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mobify/bellows/downloads","issues_url":"https://api.github.com/repos/mobify/bellows/issues{/number}","pulls_url":"https://api.github.com/repos/mobify/bellows/pulls{/number}","milestones_url":"https://api.github.com/repos/mobify/bellows/milestones{/number}","notifications_url":"https://api.github.com/repos/mobify/bellows/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mobify/bellows/labels{/name}","releases_url":"https://api.github.com/repos/mobify/bellows/releases{/id}","created_at":"2013-07-20T21:07:10Z","updated_at":"2015-01-07T16:34:50Z","pushed_at":"2015-01-05T21:50:19Z","git_url":"git://github.com/mobify/bellows.git","ssh_url":"git@github.com:mobify/bellows.git","clone_url":"https://github.com/mobify/bellows.git","svn_url":"https://github.com/mobify/bellows","homepage":"","size":1937,"stargazers_count":57,"watchers_count":57,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":6,"forks":11,"open_issues":6,"watchers":57,"default_branch":"master"}},"base":{"label":"mobify:master","ref":"master","sha":"1606c6d4b48b8556123e06b610c0d8d00dc9bd91","user":{"login":"mobify","id":73539,"avatar_url":"https://avatars.githubusercontent.com/u/73539?v=3","gravatar_id":"","url":"https://api.github.com/users/mobify","html_url":"https://github.com/mobify","followers_url":"https://api.github.com/users/mobify/followers","following_url":"https://api.github.com/users/mobify/following{/other_user}","gists_url":"https://api.github.com/users/mobify/gists{/gist_id}","starred_url":"https://api.github.com/users/mobify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobify/subscriptions","organizations_url":"https://api.github.com/users/mobify/orgs","repos_url":"https://api.github.com/users/mobify/repos","events_url":"https://api.github.com/users/mobify/events{/privacy}","received_events_url":"https://api.github.com/users/mobify/received_events","type":"Organization","site_admin":false},"repo":{"id":11553078,"name":"bellows","full_name":"mobify/bellows","owner":{"login":"mobify","id":73539,"avatar_url":"https://avatars.githubusercontent.com/u/73539?v=3","gravatar_id":"","url":"https://api.github.com/users/mobify","html_url":"https://github.com/mobify","followers_url":"https://api.github.com/users/mobify/followers","following_url":"https://api.github.com/users/mobify/following{/other_user}","gists_url":"https://api.github.com/users/mobify/gists{/gist_id}","starred_url":"https://api.github.com/users/mobify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobify/subscriptions","organizations_url":"https://api.github.com/users/mobify/orgs","repos_url":"https://api.github.com/users/mobify/repos","events_url":"https://api.github.com/users/mobify/events{/privacy}","received_events_url":"https://api.github.com/users/mobify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mobify/bellows","description":"A responsive, mobile-first accordion UI module for progressive disclosure on the web.","fork":false,"url":"https://api.github.com/repos/mobify/bellows","forks_url":"https://api.github.com/repos/mobify/bellows/forks","keys_url":"https://api.github.com/repos/mobify/bellows/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mobify/bellows/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mobify/bellows/teams","hooks_url":"https://api.github.com/repos/mobify/bellows/hooks","issue_events_url":"https://api.github.com/repos/mobify/bellows/issues/events{/number}","events_url":"https://api.github.com/repos/mobify/bellows/events","assignees_url":"https://api.github.com/repos/mobify/bellows/assignees{/user}","branches_url":"https://api.github.com/repos/mobify/bellows/branches{/branch}","tags_url":"https://api.github.com/repos/mobify/bellows/tags","blobs_url":"https://api.github.com/repos/mobify/bellows/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mobify/bellows/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mobify/bellows/git/refs{/sha}","trees_url":"https://api.github.com/repos/mobify/bellows/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mobify/bellows/statuses/{sha}","languages_url":"https://api.github.com/repos/mobify/bellows/languages","stargazers_url":"https://api.github.com/repos/mobify/bellows/stargazers","contributors_url":"https://api.github.com/repos/mobify/bellows/contributors","subscribers_url":"https://api.github.com/repos/mobify/bellows/subscribers","subscription_url":"https://api.github.com/repos/mobify/bellows/subscription","commits_url":"https://api.github.com/repos/mobify/bellows/commits{/sha}","git_commits_url":"https://api.github.com/repos/mobify/bellows/git/commits{/sha}","comments_url":"https://api.github.com/repos/mobify/bellows/comments{/number}","issue_comment_url":"https://api.github.com/repos/mobify/bellows/issues/comments/{number}","contents_url":"https://api.github.com/repos/mobify/bellows/contents/{+path}","compare_url":"https://api.github.com/repos/mobify/bellows/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mobify/bellows/merges","archive_url":"https://api.github.com/repos/mobify/bellows/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mobify/bellows/downloads","issues_url":"https://api.github.com/repos/mobify/bellows/issues{/number}","pulls_url":"https://api.github.com/repos/mobify/bellows/pulls{/number}","milestones_url":"https://api.github.com/repos/mobify/bellows/milestones{/number}","notifications_url":"https://api.github.com/repos/mobify/bellows/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mobify/bellows/labels{/name}","releases_url":"https://api.github.com/repos/mobify/bellows/releases{/id}","created_at":"2013-07-20T21:07:10Z","updated_at":"2015-01-07T16:34:50Z","pushed_at":"2015-01-05T21:50:19Z","git_url":"git://github.com/mobify/bellows.git","ssh_url":"git@github.com:mobify/bellows.git","clone_url":"https://github.com/mobify/bellows.git","svn_url":"https://github.com/mobify/bellows","homepage":"","size":1937,"stargazers_count":57,"watchers_count":57,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":6,"forks":11,"open_issues":6,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mobify/bellows/pulls/52"},"html":{"href":"https://github.com/mobify/bellows/pull/52"},"issue":{"href":"https://api.github.com/repos/mobify/bellows/issues/52"},"comments":{"href":"https://api.github.com/repos/mobify/bellows/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/mobify/bellows/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/mobify/bellows/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mobify/bellows/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/mobify/bellows/statuses/c3eb0c72a9a02482294de873aa652ec4c1ee1fd5"}}}}