{"action":"created","comment":{"url":"https://api.github.com/repos/RobLoach/jquery-once/pulls/comments/22426554","id":22426554,"diff_hunk":"@@ -51,37 +87,39 @@\n    * @public\n    */\n   $.fn.once = function (id) {\n-    id = id || \"once\";\n-    if (typeof id !== \"string\") {\n-      throw new Error(\"jQuery.once() parameter must be a string\");\n-    }\n-    // Build the name for the data identifier. Generate a new unique id if the\n-    // id parameter is not provided.\n-    var name = \"jquery-once-\" + id;\n+    // Build the name for the data identifier. Generate a new unique ID if the\n+    // ID parameter is not provided.\n+    var name = \"jquery-once-\" + checkId(id);\n \n-    // Filter the elements by which do not have the data yet.\n+    // Filter the elements by whi*ch do not have the data yet.","path":"jquery.once.js","position":79,"original_position":79,"commit_id":"16a3c412956ee77d946d1c8165424063d21ba767","original_commit_id":"16a3c412956ee77d946d1c8165424063d21ba767","user":{"login":"theodoreb","id":292904,"avatar_url":"https://avatars.githubusercontent.com/u/292904?v=3","gravatar_id":"","url":"https://api.github.com/users/theodoreb","html_url":"https://github.com/theodoreb","followers_url":"https://api.github.com/users/theodoreb/followers","following_url":"https://api.github.com/users/theodoreb/following{/other_user}","gists_url":"https://api.github.com/users/theodoreb/gists{/gist_id}","starred_url":"https://api.github.com/users/theodoreb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theodoreb/subscriptions","organizations_url":"https://api.github.com/users/theodoreb/orgs","repos_url":"https://api.github.com/users/theodoreb/repos","events_url":"https://api.github.com/users/theodoreb/events{/privacy}","received_events_url":"https://api.github.com/users/theodoreb/received_events","type":"User","site_admin":false},"body":"Typo?","created_at":"2015-01-02T23:22:48Z","updated_at":"2015-01-02T23:22:48Z","html_url":"https://github.com/RobLoach/jquery-once/pull/29#discussion_r22426554","pull_request_url":"https://api.github.com/repos/RobLoach/jquery-once/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/RobLoach/jquery-once/pulls/comments/22426554"},"html":{"href":"https://github.com/RobLoach/jquery-once/pull/29#discussion_r22426554"},"pull_request":{"href":"https://api.github.com/repos/RobLoach/jquery-once/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/RobLoach/jquery-once/pulls/29","id":26763045,"html_url":"https://github.com/RobLoach/jquery-once/pull/29","diff_url":"https://github.com/RobLoach/jquery-once/pull/29.diff","patch_url":"https://github.com/RobLoach/jquery-once/pull/29.patch","issue_url":"https://api.github.com/repos/RobLoach/jquery-once/issues/29","number":29,"state":"open","locked":false,"title":"#28: Add type checking for the provided id parameters","user":{"login":"RobLoach","id":25086,"avatar_url":"https://avatars.githubusercontent.com/u/25086?v=3","gravatar_id":"","url":"https://api.github.com/users/RobLoach","html_url":"https://github.com/RobLoach","followers_url":"https://api.github.com/users/RobLoach/followers","following_url":"https://api.github.com/users/RobLoach/following{/other_user}","gists_url":"https://api.github.com/users/RobLoach/gists{/gist_id}","starred_url":"https://api.github.com/users/RobLoach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobLoach/subscriptions","organizations_url":"https://api.github.com/users/RobLoach/orgs","repos_url":"https://api.github.com/users/RobLoach/repos","events_url":"https://api.github.com/users/RobLoach/events{/privacy}","received_events_url":"https://api.github.com/users/RobLoach/received_events","type":"User","site_admin":false},"body":"#28","created_at":"2015-01-02T17:02:37Z","updated_at":"2015-01-02T23:22:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7056730c850b5db553ce9b5b73d30e6c211ea41d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RobLoach/jquery-once/pulls/29/commits","review_comments_url":"https://api.github.com/repos/RobLoach/jquery-once/pulls/29/comments","review_comment_url":"https://api.github.com/repos/RobLoach/jquery-once/pulls/comments/{number}","comments_url":"https://api.github.com/repos/RobLoach/jquery-once/issues/29/comments","statuses_url":"https://api.github.com/repos/RobLoach/jquery-once/statuses/16a3c412956ee77d946d1c8165424063d21ba767","head":{"label":"RobLoach:28-argumenttype","ref":"28-argumenttype","sha":"16a3c412956ee77d946d1c8165424063d21ba767","user":{"login":"RobLoach","id":25086,"avatar_url":"https://avatars.githubusercontent.com/u/25086?v=3","gravatar_id":"","url":"https://api.github.com/users/RobLoach","html_url":"https://github.com/RobLoach","followers_url":"https://api.github.com/users/RobLoach/followers","following_url":"https://api.github.com/users/RobLoach/following{/other_user}","gists_url":"https://api.github.com/users/RobLoach/gists{/gist_id}","starred_url":"https://api.github.com/users/RobLoach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobLoach/subscriptions","organizations_url":"https://api.github.com/users/RobLoach/orgs","repos_url":"https://api.github.com/users/RobLoach/repos","events_url":"https://api.github.com/users/RobLoach/events{/privacy}","received_events_url":"https://api.github.com/users/RobLoach/received_events","type":"User","site_admin":false},"repo":{"id":8528208,"name":"jquery-once","full_name":"RobLoach/jquery-once","owner":{"login":"RobLoach","id":25086,"avatar_url":"https://avatars.githubusercontent.com/u/25086?v=3","gravatar_id":"","url":"https://api.github.com/users/RobLoach","html_url":"https://github.com/RobLoach","followers_url":"https://api.github.com/users/RobLoach/followers","following_url":"https://api.github.com/users/RobLoach/following{/other_user}","gists_url":"https://api.github.com/users/RobLoach/gists{/gist_id}","starred_url":"https://api.github.com/users/RobLoach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobLoach/subscriptions","organizations_url":"https://api.github.com/users/RobLoach/orgs","repos_url":"https://api.github.com/users/RobLoach/repos","events_url":"https://api.github.com/users/RobLoach/events{/privacy}","received_events_url":"https://api.github.com/users/RobLoach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RobLoach/jquery-once","description":"Act on jQuery elements only once.","fork":false,"url":"https://api.github.com/repos/RobLoach/jquery-once","forks_url":"https://api.github.com/repos/RobLoach/jquery-once/forks","keys_url":"https://api.github.com/repos/RobLoach/jquery-once/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RobLoach/jquery-once/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RobLoach/jquery-once/teams","hooks_url":"https://api.github.com/repos/RobLoach/jquery-once/hooks","issue_events_url":"https://api.github.com/repos/RobLoach/jquery-once/issues/events{/number}","events_url":"https://api.github.com/repos/RobLoach/jquery-once/events","assignees_url":"https://api.github.com/repos/RobLoach/jquery-once/assignees{/user}","branches_url":"https://api.github.com/repos/RobLoach/jquery-once/branches{/branch}","tags_url":"https://api.github.com/repos/RobLoach/jquery-once/tags","blobs_url":"https://api.github.com/repos/RobLoach/jquery-once/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RobLoach/jquery-once/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RobLoach/jquery-once/git/refs{/sha}","trees_url":"https://api.github.com/repos/RobLoach/jquery-once/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RobLoach/jquery-once/statuses/{sha}","languages_url":"https://api.github.com/repos/RobLoach/jquery-once/languages","stargazers_url":"https://api.github.com/repos/RobLoach/jquery-once/stargazers","contributors_url":"https://api.github.com/repos/RobLoach/jquery-once/contributors","subscribers_url":"https://api.github.com/repos/RobLoach/jquery-once/subscribers","subscription_url":"https://api.github.com/repos/RobLoach/jquery-once/subscription","commits_url":"https://api.github.com/repos/RobLoach/jquery-once/commits{/sha}","git_commits_url":"https://api.github.com/repos/RobLoach/jquery-once/git/commits{/sha}","comments_url":"https://api.github.com/repos/RobLoach/jquery-once/comments{/number}","issue_comment_url":"https://api.github.com/repos/RobLoach/jquery-once/issues/comments/{number}","contents_url":"https://api.github.com/repos/RobLoach/jquery-once/contents/{+path}","compare_url":"https://api.github.com/repos/RobLoach/jquery-once/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RobLoach/jquery-once/merges","archive_url":"https://api.github.com/repos/RobLoach/jquery-once/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RobLoach/jquery-once/downloads","issues_url":"https://api.github.com/repos/RobLoach/jquery-once/issues{/number}","pulls_url":"https://api.github.com/repos/RobLoach/jquery-once/pulls{/number}","milestones_url":"https://api.github.com/repos/RobLoach/jquery-once/milestones{/number}","notifications_url":"https://api.github.com/repos/RobLoach/jquery-once/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RobLoach/jquery-once/labels{/name}","releases_url":"https://api.github.com/repos/RobLoach/jquery-once/releases{/id}","created_at":"2013-03-02T22:41:09Z","updated_at":"2015-01-02T17:55:30Z","pushed_at":"2015-01-02T19:47:52Z","git_url":"git://github.com/RobLoach/jquery-once.git","ssh_url":"git@github.com:RobLoach/jquery-once.git","clone_url":"https://github.com/RobLoach/jquery-once.git","svn_url":"https://github.com/RobLoach/jquery-once","homepage":"http://plugins.jquery.com/once/","size":582,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":5,"forks":6,"open_issues":5,"watchers":20,"default_branch":"master"}},"base":{"label":"RobLoach:master","ref":"master","sha":"37469a162d159bca8288c40a95a4d6db2d54e0e4","user":{"login":"RobLoach","id":25086,"avatar_url":"https://avatars.githubusercontent.com/u/25086?v=3","gravatar_id":"","url":"https://api.github.com/users/RobLoach","html_url":"https://github.com/RobLoach","followers_url":"https://api.github.com/users/RobLoach/followers","following_url":"https://api.github.com/users/RobLoach/following{/other_user}","gists_url":"https://api.github.com/users/RobLoach/gists{/gist_id}","starred_url":"https://api.github.com/users/RobLoach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobLoach/subscriptions","organizations_url":"https://api.github.com/users/RobLoach/orgs","repos_url":"https://api.github.com/users/RobLoach/repos","events_url":"https://api.github.com/users/RobLoach/events{/privacy}","received_events_url":"https://api.github.com/users/RobLoach/received_events","type":"User","site_admin":false},"repo":{"id":8528208,"name":"jquery-once","full_name":"RobLoach/jquery-once","owner":{"login":"RobLoach","id":25086,"avatar_url":"https://avatars.githubusercontent.com/u/25086?v=3","gravatar_id":"","url":"https://api.github.com/users/RobLoach","html_url":"https://github.com/RobLoach","followers_url":"https://api.github.com/users/RobLoach/followers","following_url":"https://api.github.com/users/RobLoach/following{/other_user}","gists_url":"https://api.github.com/users/RobLoach/gists{/gist_id}","starred_url":"https://api.github.com/users/RobLoach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobLoach/subscriptions","organizations_url":"https://api.github.com/users/RobLoach/orgs","repos_url":"https://api.github.com/users/RobLoach/repos","events_url":"https://api.github.com/users/RobLoach/events{/privacy}","received_events_url":"https://api.github.com/users/RobLoach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RobLoach/jquery-once","description":"Act on jQuery elements only once.","fork":false,"url":"https://api.github.com/repos/RobLoach/jquery-once","forks_url":"https://api.github.com/repos/RobLoach/jquery-once/forks","keys_url":"https://api.github.com/repos/RobLoach/jquery-once/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RobLoach/jquery-once/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RobLoach/jquery-once/teams","hooks_url":"https://api.github.com/repos/RobLoach/jquery-once/hooks","issue_events_url":"https://api.github.com/repos/RobLoach/jquery-once/issues/events{/number}","events_url":"https://api.github.com/repos/RobLoach/jquery-once/events","assignees_url":"https://api.github.com/repos/RobLoach/jquery-once/assignees{/user}","branches_url":"https://api.github.com/repos/RobLoach/jquery-once/branches{/branch}","tags_url":"https://api.github.com/repos/RobLoach/jquery-once/tags","blobs_url":"https://api.github.com/repos/RobLoach/jquery-once/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RobLoach/jquery-once/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RobLoach/jquery-once/git/refs{/sha}","trees_url":"https://api.github.com/repos/RobLoach/jquery-once/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RobLoach/jquery-once/statuses/{sha}","languages_url":"https://api.github.com/repos/RobLoach/jquery-once/languages","stargazers_url":"https://api.github.com/repos/RobLoach/jquery-once/stargazers","contributors_url":"https://api.github.com/repos/RobLoach/jquery-once/contributors","subscribers_url":"https://api.github.com/repos/RobLoach/jquery-once/subscribers","subscription_url":"https://api.github.com/repos/RobLoach/jquery-once/subscription","commits_url":"https://api.github.com/repos/RobLoach/jquery-once/commits{/sha}","git_commits_url":"https://api.github.com/repos/RobLoach/jquery-once/git/commits{/sha}","comments_url":"https://api.github.com/repos/RobLoach/jquery-once/comments{/number}","issue_comment_url":"https://api.github.com/repos/RobLoach/jquery-once/issues/comments/{number}","contents_url":"https://api.github.com/repos/RobLoach/jquery-once/contents/{+path}","compare_url":"https://api.github.com/repos/RobLoach/jquery-once/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RobLoach/jquery-once/merges","archive_url":"https://api.github.com/repos/RobLoach/jquery-once/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RobLoach/jquery-once/downloads","issues_url":"https://api.github.com/repos/RobLoach/jquery-once/issues{/number}","pulls_url":"https://api.github.com/repos/RobLoach/jquery-once/pulls{/number}","milestones_url":"https://api.github.com/repos/RobLoach/jquery-once/milestones{/number}","notifications_url":"https://api.github.com/repos/RobLoach/jquery-once/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RobLoach/jquery-once/labels{/name}","releases_url":"https://api.github.com/repos/RobLoach/jquery-once/releases{/id}","created_at":"2013-03-02T22:41:09Z","updated_at":"2015-01-02T17:55:30Z","pushed_at":"2015-01-02T19:47:52Z","git_url":"git://github.com/RobLoach/jquery-once.git","ssh_url":"git@github.com:RobLoach/jquery-once.git","clone_url":"https://github.com/RobLoach/jquery-once.git","svn_url":"https://github.com/RobLoach/jquery-once","homepage":"http://plugins.jquery.com/once/","size":582,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":5,"forks":6,"open_issues":5,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RobLoach/jquery-once/pulls/29"},"html":{"href":"https://github.com/RobLoach/jquery-once/pull/29"},"issue":{"href":"https://api.github.com/repos/RobLoach/jquery-once/issues/29"},"comments":{"href":"https://api.github.com/repos/RobLoach/jquery-once/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/RobLoach/jquery-once/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/RobLoach/jquery-once/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/RobLoach/jquery-once/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/RobLoach/jquery-once/statuses/16a3c412956ee77d946d1c8165424063d21ba767"}}}}