{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/fxedel/toggle-icon/pulls/2","id":56918741,"html_url":"https://github.com/fxedel/toggle-icon/pull/2","diff_url":"https://github.com/fxedel/toggle-icon/pull/2.diff","patch_url":"https://github.com/fxedel/toggle-icon/pull/2.patch","issue_url":"https://api.github.com/repos/fxedel/toggle-icon/issues/2","number":2,"state":"closed","locked":false,"title":"Bug correction and code factorisation","user":{"login":"MeTaNoV","id":11166016,"avatar_url":"https://avatars.githubusercontent.com/u/11166016?v=3","gravatar_id":"","url":"https://api.github.com/users/MeTaNoV","html_url":"https://github.com/MeTaNoV","followers_url":"https://api.github.com/users/MeTaNoV/followers","following_url":"https://api.github.com/users/MeTaNoV/following{/other_user}","gists_url":"https://api.github.com/users/MeTaNoV/gists{/gist_id}","starred_url":"https://api.github.com/users/MeTaNoV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeTaNoV/subscriptions","organizations_url":"https://api.github.com/users/MeTaNoV/orgs","repos_url":"https://api.github.com/users/MeTaNoV/repos","events_url":"https://api.github.com/users/MeTaNoV/events{/privacy}","received_events_url":"https://api.github.com/users/MeTaNoV/received_events","type":"User","site_admin":false},"body":"There was a bug due to the order in ready() call which led to having the active icon set always with inactive icon.\r\nCode is also a bit more compact.\r\nAdded git .ignore.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/fxedel/toggle-icon/2)\n<!-- Reviewable:end -->\n","created_at":"2016-01-22T17:43:49Z","updated_at":"2016-02-10T16:24:32Z","closed_at":"2016-02-10T16:24:32Z","merged_at":"2016-02-10T16:24:32Z","merge_commit_sha":"aa524c910f8f236c1bf0423957b0bf8f7a10b41d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fxedel/toggle-icon/pulls/2/commits","review_comments_url":"https://api.github.com/repos/fxedel/toggle-icon/pulls/2/comments","review_comment_url":"https://api.github.com/repos/fxedel/toggle-icon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fxedel/toggle-icon/issues/2/comments","statuses_url":"https://api.github.com/repos/fxedel/toggle-icon/statuses/12f878b9cfff46c392c86dd699a8d6d4246dc7e2","head":{"label":"MeTaNoV:master","ref":"master","sha":"12f878b9cfff46c392c86dd699a8d6d4246dc7e2","user":{"login":"MeTaNoV","id":11166016,"avatar_url":"https://avatars.githubusercontent.com/u/11166016?v=3","gravatar_id":"","url":"https://api.github.com/users/MeTaNoV","html_url":"https://github.com/MeTaNoV","followers_url":"https://api.github.com/users/MeTaNoV/followers","following_url":"https://api.github.com/users/MeTaNoV/following{/other_user}","gists_url":"https://api.github.com/users/MeTaNoV/gists{/gist_id}","starred_url":"https://api.github.com/users/MeTaNoV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeTaNoV/subscriptions","organizations_url":"https://api.github.com/users/MeTaNoV/orgs","repos_url":"https://api.github.com/users/MeTaNoV/repos","events_url":"https://api.github.com/users/MeTaNoV/events{/privacy}","received_events_url":"https://api.github.com/users/MeTaNoV/received_events","type":"User","site_admin":false},"repo":{"id":50185464,"name":"toggle-icon","full_name":"MeTaNoV/toggle-icon","owner":{"login":"MeTaNoV","id":11166016,"avatar_url":"https://avatars.githubusercontent.com/u/11166016?v=3","gravatar_id":"","url":"https://api.github.com/users/MeTaNoV","html_url":"https://github.com/MeTaNoV","followers_url":"https://api.github.com/users/MeTaNoV/followers","following_url":"https://api.github.com/users/MeTaNoV/following{/other_user}","gists_url":"https://api.github.com/users/MeTaNoV/gists{/gist_id}","starred_url":"https://api.github.com/users/MeTaNoV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeTaNoV/subscriptions","organizations_url":"https://api.github.com/users/MeTaNoV/orgs","repos_url":"https://api.github.com/users/MeTaNoV/repos","events_url":"https://api.github.com/users/MeTaNoV/events{/privacy}","received_events_url":"https://api.github.com/users/MeTaNoV/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MeTaNoV/toggle-icon","description":"toggle-icon is a custom element created with Polymer. It provides an extremly powerful and customizable switch that looks like a paper-icon-button.","fork":true,"url":"https://api.github.com/repos/MeTaNoV/toggle-icon","forks_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/forks","keys_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/teams","hooks_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/hooks","issue_events_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/issues/events{/number}","events_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/events","assignees_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/assignees{/user}","branches_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/branches{/branch}","tags_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/tags","blobs_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/git/refs{/sha}","trees_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/statuses/{sha}","languages_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/languages","stargazers_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/stargazers","contributors_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/contributors","subscribers_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/subscribers","subscription_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/subscription","commits_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/commits{/sha}","git_commits_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/git/commits{/sha}","comments_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/comments{/number}","issue_comment_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/issues/comments{/number}","contents_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/contents/{+path}","compare_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/merges","archive_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/downloads","issues_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/issues{/number}","pulls_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/pulls{/number}","milestones_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/milestones{/number}","notifications_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/labels{/name}","releases_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/releases{/id}","deployments_url":"https://api.github.com/repos/MeTaNoV/toggle-icon/deployments","created_at":"2016-01-22T14:16:42Z","updated_at":"2016-01-22T14:16:43Z","pushed_at":"2016-01-22T14:55:24Z","git_url":"git://github.com/MeTaNoV/toggle-icon.git","ssh_url":"git@github.com:MeTaNoV/toggle-icon.git","clone_url":"https://github.com/MeTaNoV/toggle-icon.git","svn_url":"https://github.com/MeTaNoV/toggle-icon","homepage":"http://fxedel.github.io/toggle-icon/toggle-icon/","size":1724,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fxedel:master","ref":"master","sha":"2730e1e3fd3756f0a78550bf6dfbc640ca94edf7","user":{"login":"fxedel","id":7782229,"avatar_url":"https://avatars.githubusercontent.com/u/7782229?v=3","gravatar_id":"","url":"https://api.github.com/users/fxedel","html_url":"https://github.com/fxedel","followers_url":"https://api.github.com/users/fxedel/followers","following_url":"https://api.github.com/users/fxedel/following{/other_user}","gists_url":"https://api.github.com/users/fxedel/gists{/gist_id}","starred_url":"https://api.github.com/users/fxedel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxedel/subscriptions","organizations_url":"https://api.github.com/users/fxedel/orgs","repos_url":"https://api.github.com/users/fxedel/repos","events_url":"https://api.github.com/users/fxedel/events{/privacy}","received_events_url":"https://api.github.com/users/fxedel/received_events","type":"User","site_admin":false},"repo":{"id":42174970,"name":"toggle-icon","full_name":"fxedel/toggle-icon","owner":{"login":"fxedel","id":7782229,"avatar_url":"https://avatars.githubusercontent.com/u/7782229?v=3","gravatar_id":"","url":"https://api.github.com/users/fxedel","html_url":"https://github.com/fxedel","followers_url":"https://api.github.com/users/fxedel/followers","following_url":"https://api.github.com/users/fxedel/following{/other_user}","gists_url":"https://api.github.com/users/fxedel/gists{/gist_id}","starred_url":"https://api.github.com/users/fxedel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxedel/subscriptions","organizations_url":"https://api.github.com/users/fxedel/orgs","repos_url":"https://api.github.com/users/fxedel/repos","events_url":"https://api.github.com/users/fxedel/events{/privacy}","received_events_url":"https://api.github.com/users/fxedel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fxedel/toggle-icon","description":"toggle-icon is a custom element created with Polymer. It provides an extremly powerful and customizable switch that looks like a paper-icon-button.","fork":false,"url":"https://api.github.com/repos/fxedel/toggle-icon","forks_url":"https://api.github.com/repos/fxedel/toggle-icon/forks","keys_url":"https://api.github.com/repos/fxedel/toggle-icon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxedel/toggle-icon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxedel/toggle-icon/teams","hooks_url":"https://api.github.com/repos/fxedel/toggle-icon/hooks","issue_events_url":"https://api.github.com/repos/fxedel/toggle-icon/issues/events{/number}","events_url":"https://api.github.com/repos/fxedel/toggle-icon/events","assignees_url":"https://api.github.com/repos/fxedel/toggle-icon/assignees{/user}","branches_url":"https://api.github.com/repos/fxedel/toggle-icon/branches{/branch}","tags_url":"https://api.github.com/repos/fxedel/toggle-icon/tags","blobs_url":"https://api.github.com/repos/fxedel/toggle-icon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxedel/toggle-icon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxedel/toggle-icon/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxedel/toggle-icon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxedel/toggle-icon/statuses/{sha}","languages_url":"https://api.github.com/repos/fxedel/toggle-icon/languages","stargazers_url":"https://api.github.com/repos/fxedel/toggle-icon/stargazers","contributors_url":"https://api.github.com/repos/fxedel/toggle-icon/contributors","subscribers_url":"https://api.github.com/repos/fxedel/toggle-icon/subscribers","subscription_url":"https://api.github.com/repos/fxedel/toggle-icon/subscription","commits_url":"https://api.github.com/repos/fxedel/toggle-icon/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxedel/toggle-icon/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxedel/toggle-icon/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxedel/toggle-icon/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxedel/toggle-icon/contents/{+path}","compare_url":"https://api.github.com/repos/fxedel/toggle-icon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxedel/toggle-icon/merges","archive_url":"https://api.github.com/repos/fxedel/toggle-icon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxedel/toggle-icon/downloads","issues_url":"https://api.github.com/repos/fxedel/toggle-icon/issues{/number}","pulls_url":"https://api.github.com/repos/fxedel/toggle-icon/pulls{/number}","milestones_url":"https://api.github.com/repos/fxedel/toggle-icon/milestones{/number}","notifications_url":"https://api.github.com/repos/fxedel/toggle-icon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxedel/toggle-icon/labels{/name}","releases_url":"https://api.github.com/repos/fxedel/toggle-icon/releases{/id}","deployments_url":"https://api.github.com/repos/fxedel/toggle-icon/deployments","created_at":"2015-09-09T11:42:15Z","updated_at":"2016-01-21T23:06:07Z","pushed_at":"2016-02-10T16:24:32Z","git_url":"git://github.com/fxedel/toggle-icon.git","ssh_url":"git@github.com:fxedel/toggle-icon.git","clone_url":"https://github.com/fxedel/toggle-icon.git","svn_url":"https://github.com/fxedel/toggle-icon","homepage":"http://fxedel.github.io/toggle-icon/toggle-icon/","size":1920,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fxedel/toggle-icon/pulls/2"},"html":{"href":"https://github.com/fxedel/toggle-icon/pull/2"},"issue":{"href":"https://api.github.com/repos/fxedel/toggle-icon/issues/2"},"comments":{"href":"https://api.github.com/repos/fxedel/toggle-icon/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/fxedel/toggle-icon/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/fxedel/toggle-icon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fxedel/toggle-icon/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/fxedel/toggle-icon/statuses/12f878b9cfff46c392c86dd699a8d6d4246dc7e2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"fxedel","id":7782229,"avatar_url":"https://avatars.githubusercontent.com/u/7782229?v=3","gravatar_id":"","url":"https://api.github.com/users/fxedel","html_url":"https://github.com/fxedel","followers_url":"https://api.github.com/users/fxedel/followers","following_url":"https://api.github.com/users/fxedel/following{/other_user}","gists_url":"https://api.github.com/users/fxedel/gists{/gist_id}","starred_url":"https://api.github.com/users/fxedel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxedel/subscriptions","organizations_url":"https://api.github.com/users/fxedel/orgs","repos_url":"https://api.github.com/users/fxedel/repos","events_url":"https://api.github.com/users/fxedel/events{/privacy}","received_events_url":"https://api.github.com/users/fxedel/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":25,"deletions":50,"changed_files":3}}