{"action":"created","comment":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/comments/24444446","id":24444446,"diff_hunk":"@@ -1765,3 +1765,30 @@ test( \"Validation triggered on radio and checkbox via click\", function() {\n \t// test if there is no error anymore\n \tok( form.find( \"input.error\" ).length === 0, \"Form valid\" );\n });\n+\n+test( \"destruction of Validator\", function() {\n+\texpect( 2 );\n+\n+\tvar form = $( \"#validatorDestroy\" ),\n+\t\tvalidate = form.validate();\n+\n+\tform.on( \"submit.validate\", function( event )\n+\t{\n+\t\tevent.preventDefault();\n+\n+\t\tok( !!$( this ).data( \"validator\" ), \"Validator has events and object\" );\n+\t});\n+\n+\tform.submit();\n+\n+\tvalidate.destroy();\n+\n+\tform.on( \"submit.validate\", function( event )","path":"test/test.js","position":22,"original_position":22,"commit_id":"dd85cf8db9bbaec08eaac03f62bf440caaa7f64c","original_commit_id":"ba1003ed864b24bc3cbebdadd4c2fa970c9eb0d5","user":{"login":"jzaefferer","id":52585,"avatar_url":"https://avatars.githubusercontent.com/u/52585?v=3","gravatar_id":"","url":"https://api.github.com/users/jzaefferer","html_url":"https://github.com/jzaefferer","followers_url":"https://api.github.com/users/jzaefferer/followers","following_url":"https://api.github.com/users/jzaefferer/following{/other_user}","gists_url":"https://api.github.com/users/jzaefferer/gists{/gist_id}","starred_url":"https://api.github.com/users/jzaefferer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzaefferer/subscriptions","organizations_url":"https://api.github.com/users/jzaefferer/orgs","repos_url":"https://api.github.com/users/jzaefferer/repos","events_url":"https://api.github.com/users/jzaefferer/events{/privacy}","received_events_url":"https://api.github.com/users/jzaefferer/received_events","type":"User","site_admin":false},"body":"Without an example of the actual error you encountered, its hard to tell what was going on there. For the isolated test here, I don't see value in the submit handlers.","created_at":"2015-02-10T19:51:49Z","updated_at":"2015-02-10T19:51:49Z","html_url":"https://github.com/jzaefferer/jquery-validation/pull/1392#discussion_r24444446","pull_request_url":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/1392","_links":{"self":{"href":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/comments/24444446"},"html":{"href":"https://github.com/jzaefferer/jquery-validation/pull/1392#discussion_r24444446"},"pull_request":{"href":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/1392"}}},"pull_request":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/1392","id":28547821,"html_url":"https://github.com/jzaefferer/jquery-validation/pull/1392","diff_url":"https://github.com/jzaefferer/jquery-validation/pull/1392.diff","patch_url":"https://github.com/jzaefferer/jquery-validation/pull/1392.patch","issue_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1392","number":1392,"state":"open","locked":false,"title":"Core: Added destroy method to validate","user":{"login":"Westie","id":117472,"avatar_url":"https://avatars.githubusercontent.com/u/117472?v=3","gravatar_id":"","url":"https://api.github.com/users/Westie","html_url":"https://github.com/Westie","followers_url":"https://api.github.com/users/Westie/followers","following_url":"https://api.github.com/users/Westie/following{/other_user}","gists_url":"https://api.github.com/users/Westie/gists{/gist_id}","starred_url":"https://api.github.com/users/Westie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Westie/subscriptions","organizations_url":"https://api.github.com/users/Westie/orgs","repos_url":"https://api.github.com/users/Westie/repos","events_url":"https://api.github.com/users/Westie/events{/privacy}","received_events_url":"https://api.github.com/users/Westie/received_events","type":"User","site_admin":false},"body":"Hi!\r\n\r\nI've created a method that will reset jQuery validate and put it in the state where the object can be re-initiated.","created_at":"2015-02-03T12:19:16Z","updated_at":"2015-02-10T19:51:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e275ef98066e7db2cc8f42335bf73f707a0ec9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/1392/commits","review_comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/1392/comments","review_comment_url":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1392/comments","statuses_url":"https://api.github.com/repos/jzaefferer/jquery-validation/statuses/dd85cf8db9bbaec08eaac03f62bf440caaa7f64c","head":{"label":"Westie:master","ref":"master","sha":"dd85cf8db9bbaec08eaac03f62bf440caaa7f64c","user":{"login":"Westie","id":117472,"avatar_url":"https://avatars.githubusercontent.com/u/117472?v=3","gravatar_id":"","url":"https://api.github.com/users/Westie","html_url":"https://github.com/Westie","followers_url":"https://api.github.com/users/Westie/followers","following_url":"https://api.github.com/users/Westie/following{/other_user}","gists_url":"https://api.github.com/users/Westie/gists{/gist_id}","starred_url":"https://api.github.com/users/Westie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Westie/subscriptions","organizations_url":"https://api.github.com/users/Westie/orgs","repos_url":"https://api.github.com/users/Westie/repos","events_url":"https://api.github.com/users/Westie/events{/privacy}","received_events_url":"https://api.github.com/users/Westie/received_events","type":"User","site_admin":false},"repo":{"id":30241019,"name":"jquery-validation","full_name":"Westie/jquery-validation","owner":{"login":"Westie","id":117472,"avatar_url":"https://avatars.githubusercontent.com/u/117472?v=3","gravatar_id":"","url":"https://api.github.com/users/Westie","html_url":"https://github.com/Westie","followers_url":"https://api.github.com/users/Westie/followers","following_url":"https://api.github.com/users/Westie/following{/other_user}","gists_url":"https://api.github.com/users/Westie/gists{/gist_id}","starred_url":"https://api.github.com/users/Westie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Westie/subscriptions","organizations_url":"https://api.github.com/users/Westie/orgs","repos_url":"https://api.github.com/users/Westie/repos","events_url":"https://api.github.com/users/Westie/events{/privacy}","received_events_url":"https://api.github.com/users/Westie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Westie/jquery-validation","description":"jQuery Validation Plugin","fork":true,"url":"https://api.github.com/repos/Westie/jquery-validation","forks_url":"https://api.github.com/repos/Westie/jquery-validation/forks","keys_url":"https://api.github.com/repos/Westie/jquery-validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Westie/jquery-validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Westie/jquery-validation/teams","hooks_url":"https://api.github.com/repos/Westie/jquery-validation/hooks","issue_events_url":"https://api.github.com/repos/Westie/jquery-validation/issues/events{/number}","events_url":"https://api.github.com/repos/Westie/jquery-validation/events","assignees_url":"https://api.github.com/repos/Westie/jquery-validation/assignees{/user}","branches_url":"https://api.github.com/repos/Westie/jquery-validation/branches{/branch}","tags_url":"https://api.github.com/repos/Westie/jquery-validation/tags","blobs_url":"https://api.github.com/repos/Westie/jquery-validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Westie/jquery-validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Westie/jquery-validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Westie/jquery-validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Westie/jquery-validation/statuses/{sha}","languages_url":"https://api.github.com/repos/Westie/jquery-validation/languages","stargazers_url":"https://api.github.com/repos/Westie/jquery-validation/stargazers","contributors_url":"https://api.github.com/repos/Westie/jquery-validation/contributors","subscribers_url":"https://api.github.com/repos/Westie/jquery-validation/subscribers","subscription_url":"https://api.github.com/repos/Westie/jquery-validation/subscription","commits_url":"https://api.github.com/repos/Westie/jquery-validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Westie/jquery-validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Westie/jquery-validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Westie/jquery-validation/issues/comments/{number}","contents_url":"https://api.github.com/repos/Westie/jquery-validation/contents/{+path}","compare_url":"https://api.github.com/repos/Westie/jquery-validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Westie/jquery-validation/merges","archive_url":"https://api.github.com/repos/Westie/jquery-validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Westie/jquery-validation/downloads","issues_url":"https://api.github.com/repos/Westie/jquery-validation/issues{/number}","pulls_url":"https://api.github.com/repos/Westie/jquery-validation/pulls{/number}","milestones_url":"https://api.github.com/repos/Westie/jquery-validation/milestones{/number}","notifications_url":"https://api.github.com/repos/Westie/jquery-validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Westie/jquery-validation/labels{/name}","releases_url":"https://api.github.com/repos/Westie/jquery-validation/releases{/id}","created_at":"2015-02-03T12:13:02Z","updated_at":"2015-02-10T19:40:39Z","pushed_at":"2015-02-10T19:40:39Z","git_url":"git://github.com/Westie/jquery-validation.git","ssh_url":"git@github.com:Westie/jquery-validation.git","clone_url":"https://github.com/Westie/jquery-validation.git","svn_url":"https://github.com/Westie/jquery-validation","homepage":"http://jqueryvalidation.org/","size":6476,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"jzaefferer:master","ref":"master","sha":"7a632246beb05a966fc0b6ee177d5f77ea96f030","user":{"login":"jzaefferer","id":52585,"avatar_url":"https://avatars.githubusercontent.com/u/52585?v=3","gravatar_id":"","url":"https://api.github.com/users/jzaefferer","html_url":"https://github.com/jzaefferer","followers_url":"https://api.github.com/users/jzaefferer/followers","following_url":"https://api.github.com/users/jzaefferer/following{/other_user}","gists_url":"https://api.github.com/users/jzaefferer/gists{/gist_id}","starred_url":"https://api.github.com/users/jzaefferer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzaefferer/subscriptions","organizations_url":"https://api.github.com/users/jzaefferer/orgs","repos_url":"https://api.github.com/users/jzaefferer/repos","events_url":"https://api.github.com/users/jzaefferer/events{/privacy}","received_events_url":"https://api.github.com/users/jzaefferer/received_events","type":"User","site_admin":false},"repo":{"id":648414,"name":"jquery-validation","full_name":"jzaefferer/jquery-validation","owner":{"login":"jzaefferer","id":52585,"avatar_url":"https://avatars.githubusercontent.com/u/52585?v=3","gravatar_id":"","url":"https://api.github.com/users/jzaefferer","html_url":"https://github.com/jzaefferer","followers_url":"https://api.github.com/users/jzaefferer/followers","following_url":"https://api.github.com/users/jzaefferer/following{/other_user}","gists_url":"https://api.github.com/users/jzaefferer/gists{/gist_id}","starred_url":"https://api.github.com/users/jzaefferer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzaefferer/subscriptions","organizations_url":"https://api.github.com/users/jzaefferer/orgs","repos_url":"https://api.github.com/users/jzaefferer/repos","events_url":"https://api.github.com/users/jzaefferer/events{/privacy}","received_events_url":"https://api.github.com/users/jzaefferer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jzaefferer/jquery-validation","description":"jQuery Validation Plugin","fork":false,"url":"https://api.github.com/repos/jzaefferer/jquery-validation","forks_url":"https://api.github.com/repos/jzaefferer/jquery-validation/forks","keys_url":"https://api.github.com/repos/jzaefferer/jquery-validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jzaefferer/jquery-validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jzaefferer/jquery-validation/teams","hooks_url":"https://api.github.com/repos/jzaefferer/jquery-validation/hooks","issue_events_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/events{/number}","events_url":"https://api.github.com/repos/jzaefferer/jquery-validation/events","assignees_url":"https://api.github.com/repos/jzaefferer/jquery-validation/assignees{/user}","branches_url":"https://api.github.com/repos/jzaefferer/jquery-validation/branches{/branch}","tags_url":"https://api.github.com/repos/jzaefferer/jquery-validation/tags","blobs_url":"https://api.github.com/repos/jzaefferer/jquery-validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jzaefferer/jquery-validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jzaefferer/jquery-validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/jzaefferer/jquery-validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jzaefferer/jquery-validation/statuses/{sha}","languages_url":"https://api.github.com/repos/jzaefferer/jquery-validation/languages","stargazers_url":"https://api.github.com/repos/jzaefferer/jquery-validation/stargazers","contributors_url":"https://api.github.com/repos/jzaefferer/jquery-validation/contributors","subscribers_url":"https://api.github.com/repos/jzaefferer/jquery-validation/subscribers","subscription_url":"https://api.github.com/repos/jzaefferer/jquery-validation/subscription","commits_url":"https://api.github.com/repos/jzaefferer/jquery-validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/jzaefferer/jquery-validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/comments/{number}","contents_url":"https://api.github.com/repos/jzaefferer/jquery-validation/contents/{+path}","compare_url":"https://api.github.com/repos/jzaefferer/jquery-validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jzaefferer/jquery-validation/merges","archive_url":"https://api.github.com/repos/jzaefferer/jquery-validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jzaefferer/jquery-validation/downloads","issues_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues{/number}","pulls_url":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls{/number}","milestones_url":"https://api.github.com/repos/jzaefferer/jquery-validation/milestones{/number}","notifications_url":"https://api.github.com/repos/jzaefferer/jquery-validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jzaefferer/jquery-validation/labels{/name}","releases_url":"https://api.github.com/repos/jzaefferer/jquery-validation/releases{/id}","created_at":"2010-05-05T13:40:20Z","updated_at":"2015-02-10T19:18:14Z","pushed_at":"2015-02-10T19:18:13Z","git_url":"git://github.com/jzaefferer/jquery-validation.git","ssh_url":"git@github.com:jzaefferer/jquery-validation.git","clone_url":"https://github.com/jzaefferer/jquery-validation.git","svn_url":"https://github.com/jzaefferer/jquery-validation","homepage":"http://jqueryvalidation.org/","size":10747,"stargazers_count":4742,"watchers_count":4742,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1499,"mirror_url":null,"open_issues_count":267,"forks":1499,"open_issues":267,"watchers":4742,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/1392"},"html":{"href":"https://github.com/jzaefferer/jquery-validation/pull/1392"},"issue":{"href":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1392"},"comments":{"href":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1392/comments"},"review_comments":{"href":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/1392/comments"},"review_comment":{"href":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jzaefferer/jquery-validation/pulls/1392/commits"},"statuses":{"href":"https://api.github.com/repos/jzaefferer/jquery-validation/statuses/dd85cf8db9bbaec08eaac03f62bf440caaa7f64c"}}}}