{"action":"created","comment":{"url":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/comments/37731445","id":37731445,"diff_hunk":"@@ -109,7 +109,8 @@\n \t\t\t\t\tif (el.is(':disabled')) checkbox.addClass('disabled');\r\n \r\n \t\t\t\t\t// клик на псевдочекбокс\r\n-\t\t\t\t\tcheckbox.on('click.styler', function() {\r\n+\t\t\t\t\tcheckbox.click(function(e) {\r","path":"jquery.formstyler.js","position":5,"original_position":5,"commit_id":"a5f3a3a25c78aec3ffa6802cebfdf3e1a7045930","original_commit_id":"a5f3a3a25c78aec3ffa6802cebfdf3e1a7045930","user":{"login":"a-t","id":7299277,"avatar_url":"https://avatars.githubusercontent.com/u/7299277?v=3","gravatar_id":"","url":"https://api.github.com/users/a-t","html_url":"https://github.com/a-t","followers_url":"https://api.github.com/users/a-t/followers","following_url":"https://api.github.com/users/a-t/following{/other_user}","gists_url":"https://api.github.com/users/a-t/gists{/gist_id}","starred_url":"https://api.github.com/users/a-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-t/subscriptions","organizations_url":"https://api.github.com/users/a-t/orgs","repos_url":"https://api.github.com/users/a-t/repos","events_url":"https://api.github.com/users/a-t/events{/privacy}","received_events_url":"https://api.github.com/users/a-t/received_events","type":"User","site_admin":false},"body":"`$(document).on('click', checkbox, function()  {…})` в данном случае — полный эквивалент `checkbox.click(function() {…})`, но второе, согласитесь, смотрится лучше :)\r\n\r\n`.off()` же выполняется на `el`, и если его не выполнить, то обработчики событий, добавляемые плагином, будут дублироваться при каждом `'refresh'` — это раз, а также выполняться (причем уже с ошибками) после вызова `'destroy'` по событиям на «родном», не стилизованном, элементе управления — это два. `el` же остается в DOM, это не `checkbox`, который каждый раз новый.\r\n\r\nВот [тут](https://github.com/a-t/jQueryFormStyler/commit/a85c0e66e7bc6b7f9be125d6c348bec9b6630688#diff-6827f9431e91cf63de501b73db4046c1L1001), кстати, я исправлял баг, когда дублировался (потому что не был включен в `.off()`) обработчик `'refresh'` после каждого вызова `'destroy'` и повторной стилизации.","created_at":"2015-08-24T09:00:21Z","updated_at":"2015-08-24T09:00:21Z","html_url":"https://github.com/Dimox/jQueryFormStyler/pull/82#discussion_r37731445","pull_request_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/comments/37731445"},"html":{"href":"https://github.com/Dimox/jQueryFormStyler/pull/82#discussion_r37731445"},"pull_request":{"href":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/82","id":42459383,"html_url":"https://github.com/Dimox/jQueryFormStyler/pull/82","diff_url":"https://github.com/Dimox/jQueryFormStyler/pull/82.diff","patch_url":"https://github.com/Dimox/jQueryFormStyler/pull/82.patch","issue_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/issues/82","number":82,"state":"open","locked":false,"title":"Исправил прерывание всплытия кликов","user":{"login":"a-t","id":7299277,"avatar_url":"https://avatars.githubusercontent.com/u/7299277?v=3","gravatar_id":"","url":"https://api.github.com/users/a-t","html_url":"https://github.com/a-t","followers_url":"https://api.github.com/users/a-t/followers","following_url":"https://api.github.com/users/a-t/following{/other_user}","gists_url":"https://api.github.com/users/a-t/gists{/gist_id}","starred_url":"https://api.github.com/users/a-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-t/subscriptions","organizations_url":"https://api.github.com/users/a-t/orgs","repos_url":"https://api.github.com/users/a-t/repos","events_url":"https://api.github.com/users/a-t/events{/privacy}","received_events_url":"https://api.github.com/users/a-t/received_events","type":"User","site_admin":false},"body":"Привет. Это мой вариант решения проблемы, описанной [здесь](http://dimox.name/jquery-form-styler/comment-page-32/#comment-20154).","created_at":"2015-08-14T14:10:45Z","updated_at":"2015-08-24T09:00:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec10a131e70114edf95e9eeb082501026a46495e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/82/commits","review_comments_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/82/comments","review_comment_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/issues/82/comments","statuses_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/statuses/a5f3a3a25c78aec3ffa6802cebfdf3e1a7045930","head":{"label":"a-t:master","ref":"master","sha":"a5f3a3a25c78aec3ffa6802cebfdf3e1a7045930","user":{"login":"a-t","id":7299277,"avatar_url":"https://avatars.githubusercontent.com/u/7299277?v=3","gravatar_id":"","url":"https://api.github.com/users/a-t","html_url":"https://github.com/a-t","followers_url":"https://api.github.com/users/a-t/followers","following_url":"https://api.github.com/users/a-t/following{/other_user}","gists_url":"https://api.github.com/users/a-t/gists{/gist_id}","starred_url":"https://api.github.com/users/a-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-t/subscriptions","organizations_url":"https://api.github.com/users/a-t/orgs","repos_url":"https://api.github.com/users/a-t/repos","events_url":"https://api.github.com/users/a-t/events{/privacy}","received_events_url":"https://api.github.com/users/a-t/received_events","type":"User","site_admin":false},"repo":{"id":40714484,"name":"jQueryFormStyler","full_name":"a-t/jQueryFormStyler","owner":{"login":"a-t","id":7299277,"avatar_url":"https://avatars.githubusercontent.com/u/7299277?v=3","gravatar_id":"","url":"https://api.github.com/users/a-t","html_url":"https://github.com/a-t","followers_url":"https://api.github.com/users/a-t/followers","following_url":"https://api.github.com/users/a-t/following{/other_user}","gists_url":"https://api.github.com/users/a-t/gists{/gist_id}","starred_url":"https://api.github.com/users/a-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-t/subscriptions","organizations_url":"https://api.github.com/users/a-t/orgs","repos_url":"https://api.github.com/users/a-t/repos","events_url":"https://api.github.com/users/a-t/events{/privacy}","received_events_url":"https://api.github.com/users/a-t/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a-t/jQueryFormStyler","description":"jQuery-плагин для стилизации элементов HTML-форм","fork":true,"url":"https://api.github.com/repos/a-t/jQueryFormStyler","forks_url":"https://api.github.com/repos/a-t/jQueryFormStyler/forks","keys_url":"https://api.github.com/repos/a-t/jQueryFormStyler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a-t/jQueryFormStyler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a-t/jQueryFormStyler/teams","hooks_url":"https://api.github.com/repos/a-t/jQueryFormStyler/hooks","issue_events_url":"https://api.github.com/repos/a-t/jQueryFormStyler/issues/events{/number}","events_url":"https://api.github.com/repos/a-t/jQueryFormStyler/events","assignees_url":"https://api.github.com/repos/a-t/jQueryFormStyler/assignees{/user}","branches_url":"https://api.github.com/repos/a-t/jQueryFormStyler/branches{/branch}","tags_url":"https://api.github.com/repos/a-t/jQueryFormStyler/tags","blobs_url":"https://api.github.com/repos/a-t/jQueryFormStyler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a-t/jQueryFormStyler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a-t/jQueryFormStyler/git/refs{/sha}","trees_url":"https://api.github.com/repos/a-t/jQueryFormStyler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a-t/jQueryFormStyler/statuses/{sha}","languages_url":"https://api.github.com/repos/a-t/jQueryFormStyler/languages","stargazers_url":"https://api.github.com/repos/a-t/jQueryFormStyler/stargazers","contributors_url":"https://api.github.com/repos/a-t/jQueryFormStyler/contributors","subscribers_url":"https://api.github.com/repos/a-t/jQueryFormStyler/subscribers","subscription_url":"https://api.github.com/repos/a-t/jQueryFormStyler/subscription","commits_url":"https://api.github.com/repos/a-t/jQueryFormStyler/commits{/sha}","git_commits_url":"https://api.github.com/repos/a-t/jQueryFormStyler/git/commits{/sha}","comments_url":"https://api.github.com/repos/a-t/jQueryFormStyler/comments{/number}","issue_comment_url":"https://api.github.com/repos/a-t/jQueryFormStyler/issues/comments{/number}","contents_url":"https://api.github.com/repos/a-t/jQueryFormStyler/contents/{+path}","compare_url":"https://api.github.com/repos/a-t/jQueryFormStyler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a-t/jQueryFormStyler/merges","archive_url":"https://api.github.com/repos/a-t/jQueryFormStyler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a-t/jQueryFormStyler/downloads","issues_url":"https://api.github.com/repos/a-t/jQueryFormStyler/issues{/number}","pulls_url":"https://api.github.com/repos/a-t/jQueryFormStyler/pulls{/number}","milestones_url":"https://api.github.com/repos/a-t/jQueryFormStyler/milestones{/number}","notifications_url":"https://api.github.com/repos/a-t/jQueryFormStyler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a-t/jQueryFormStyler/labels{/name}","releases_url":"https://api.github.com/repos/a-t/jQueryFormStyler/releases{/id}","created_at":"2015-08-14T12:45:14Z","updated_at":"2015-08-14T12:45:14Z","pushed_at":"2015-08-14T14:05:18Z","git_url":"git://github.com/a-t/jQueryFormStyler.git","ssh_url":"git@github.com:a-t/jQueryFormStyler.git","clone_url":"https://github.com/a-t/jQueryFormStyler.git","svn_url":"https://github.com/a-t/jQueryFormStyler","homepage":"","size":516,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Dimox:master","ref":"master","sha":"a7696c3c5f5780dbffd9ddd8cbfd9280d7a54039","user":{"login":"Dimox","id":2348058,"avatar_url":"https://avatars.githubusercontent.com/u/2348058?v=3","gravatar_id":"","url":"https://api.github.com/users/Dimox","html_url":"https://github.com/Dimox","followers_url":"https://api.github.com/users/Dimox/followers","following_url":"https://api.github.com/users/Dimox/following{/other_user}","gists_url":"https://api.github.com/users/Dimox/gists{/gist_id}","starred_url":"https://api.github.com/users/Dimox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dimox/subscriptions","organizations_url":"https://api.github.com/users/Dimox/orgs","repos_url":"https://api.github.com/users/Dimox/repos","events_url":"https://api.github.com/users/Dimox/events{/privacy}","received_events_url":"https://api.github.com/users/Dimox/received_events","type":"User","site_admin":false},"repo":{"id":6092753,"name":"jQueryFormStyler","full_name":"Dimox/jQueryFormStyler","owner":{"login":"Dimox","id":2348058,"avatar_url":"https://avatars.githubusercontent.com/u/2348058?v=3","gravatar_id":"","url":"https://api.github.com/users/Dimox","html_url":"https://github.com/Dimox","followers_url":"https://api.github.com/users/Dimox/followers","following_url":"https://api.github.com/users/Dimox/following{/other_user}","gists_url":"https://api.github.com/users/Dimox/gists{/gist_id}","starred_url":"https://api.github.com/users/Dimox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dimox/subscriptions","organizations_url":"https://api.github.com/users/Dimox/orgs","repos_url":"https://api.github.com/users/Dimox/repos","events_url":"https://api.github.com/users/Dimox/events{/privacy}","received_events_url":"https://api.github.com/users/Dimox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dimox/jQueryFormStyler","description":"jQuery-плагин для стилизации элементов HTML-форм","fork":false,"url":"https://api.github.com/repos/Dimox/jQueryFormStyler","forks_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/forks","keys_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/teams","hooks_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/hooks","issue_events_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/issues/events{/number}","events_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/events","assignees_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/assignees{/user}","branches_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/branches{/branch}","tags_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/tags","blobs_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/statuses/{sha}","languages_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/languages","stargazers_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/stargazers","contributors_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/contributors","subscribers_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/subscribers","subscription_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/subscription","commits_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/contents/{+path}","compare_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/merges","archive_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/downloads","issues_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/issues{/number}","pulls_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls{/number}","milestones_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/milestones{/number}","notifications_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/labels{/name}","releases_url":"https://api.github.com/repos/Dimox/jQueryFormStyler/releases{/id}","created_at":"2012-10-05T16:02:29Z","updated_at":"2015-08-18T05:56:41Z","pushed_at":"2015-08-14T14:10:45Z","git_url":"git://github.com/Dimox/jQueryFormStyler.git","ssh_url":"git@github.com:Dimox/jQueryFormStyler.git","clone_url":"https://github.com/Dimox/jQueryFormStyler.git","svn_url":"https://github.com/Dimox/jQueryFormStyler","homepage":"","size":1133,"stargazers_count":148,"watchers_count":148,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":74,"mirror_url":null,"open_issues_count":6,"forks":74,"open_issues":6,"watchers":148,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/82"},"html":{"href":"https://github.com/Dimox/jQueryFormStyler/pull/82"},"issue":{"href":"https://api.github.com/repos/Dimox/jQueryFormStyler/issues/82"},"comments":{"href":"https://api.github.com/repos/Dimox/jQueryFormStyler/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dimox/jQueryFormStyler/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/Dimox/jQueryFormStyler/statuses/a5f3a3a25c78aec3ffa6802cebfdf3e1a7045930"}}}}