{"action":"created","comment":{"url":"https://api.github.com/repos/harvesthq/chosen/pulls/comments/24439767","id":24439767,"diff_hunk":"@@ -280,8 +281,21 @@ class AbstractChosen\n     if /Android/i.test(window.navigator.userAgent)\n       return false if /Mobile/i.test(window.navigator.userAgent)\n     return true\n+    \n+  @tagname_is_valid: : (@form_field) ->\n+  if @form_field.tagName.toUpperCase() != 'SELECT'\n+    if window.console\n+      console.error 'Chosen error: invalid tagName ' + @form_field.selector + ' is not a select'\n+    return false\n+\n+  if @form_field.options.length == 0\n+      if  window.console\n+       console.error 'Chosen error: ' + @form_field.selector + ' has no options\\'s childs '","path":"coffee/lib/abstract-chosen.coffee","position":null,"original_position":21,"commit_id":"da8f669908137bd37f138b7f6edd7e1b8ab88079","original_commit_id":"bcb0a609f63ad31e88a7f17f0c914f15617dfd73","user":{"login":"tjschuck","id":308724,"avatar_url":"https://avatars.githubusercontent.com/u/308724?v=3","gravatar_id":"","url":"https://api.github.com/users/tjschuck","html_url":"https://github.com/tjschuck","followers_url":"https://api.github.com/users/tjschuck/followers","following_url":"https://api.github.com/users/tjschuck/following{/other_user}","gists_url":"https://api.github.com/users/tjschuck/gists{/gist_id}","starred_url":"https://api.github.com/users/tjschuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjschuck/subscriptions","organizations_url":"https://api.github.com/users/tjschuck/orgs","repos_url":"https://api.github.com/users/tjschuck/repos","events_url":"https://api.github.com/users/tjschuck/events{/privacy}","received_events_url":"https://api.github.com/users/tjschuck/received_events","type":"User","site_admin":false},"body":"Grammar/formatting:  `' has no <option> children'`","created_at":"2015-02-10T19:02:29Z","updated_at":"2015-02-10T19:02:29Z","html_url":"https://github.com/harvesthq/chosen/pull/2231#discussion_r24439767","pull_request_url":"https://api.github.com/repos/harvesthq/chosen/pulls/2231","_links":{"self":{"href":"https://api.github.com/repos/harvesthq/chosen/pulls/comments/24439767"},"html":{"href":"https://github.com/harvesthq/chosen/pull/2231#discussion_r24439767"},"pull_request":{"href":"https://api.github.com/repos/harvesthq/chosen/pulls/2231"}}},"pull_request":{"url":"https://api.github.com/repos/harvesthq/chosen/pulls/2231","id":29025876,"html_url":"https://github.com/harvesthq/chosen/pull/2231","diff_url":"https://github.com/harvesthq/chosen/pull/2231.diff","patch_url":"https://github.com/harvesthq/chosen/pull/2231.patch","issue_url":"https://api.github.com/repos/harvesthq/chosen/issues/2231","number":2231,"state":"open","locked":false,"title":"Add tagname checker","user":{"login":"ComeBurguburu","id":10062185,"avatar_url":"https://avatars.githubusercontent.com/u/10062185?v=3","gravatar_id":"","url":"https://api.github.com/users/ComeBurguburu","html_url":"https://github.com/ComeBurguburu","followers_url":"https://api.github.com/users/ComeBurguburu/followers","following_url":"https://api.github.com/users/ComeBurguburu/following{/other_user}","gists_url":"https://api.github.com/users/ComeBurguburu/gists{/gist_id}","starred_url":"https://api.github.com/users/ComeBurguburu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComeBurguburu/subscriptions","organizations_url":"https://api.github.com/users/ComeBurguburu/orgs","repos_url":"https://api.github.com/users/ComeBurguburu/repos","events_url":"https://api.github.com/users/ComeBurguburu/events{/privacy}","received_events_url":"https://api.github.com/users/ComeBurguburu/received_events","type":"User","site_admin":false},"body":"Using class name as selector can provoque bug if the selector is not a `select` or if the select hasn't `option` child.","created_at":"2015-02-10T17:16:52Z","updated_at":"2015-02-10T19:02:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bfbd094c8eaa0462277e173063ea7fb0889cae5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/harvesthq/chosen/pulls/2231/commits","review_comments_url":"https://api.github.com/repos/harvesthq/chosen/pulls/2231/comments","review_comment_url":"https://api.github.com/repos/harvesthq/chosen/pulls/comments/{number}","comments_url":"https://api.github.com/repos/harvesthq/chosen/issues/2231/comments","statuses_url":"https://api.github.com/repos/harvesthq/chosen/statuses/da8f669908137bd37f138b7f6edd7e1b8ab88079","head":{"label":"ComeBurguburu:patch-2","ref":"patch-2","sha":"da8f669908137bd37f138b7f6edd7e1b8ab88079","user":{"login":"ComeBurguburu","id":10062185,"avatar_url":"https://avatars.githubusercontent.com/u/10062185?v=3","gravatar_id":"","url":"https://api.github.com/users/ComeBurguburu","html_url":"https://github.com/ComeBurguburu","followers_url":"https://api.github.com/users/ComeBurguburu/followers","following_url":"https://api.github.com/users/ComeBurguburu/following{/other_user}","gists_url":"https://api.github.com/users/ComeBurguburu/gists{/gist_id}","starred_url":"https://api.github.com/users/ComeBurguburu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComeBurguburu/subscriptions","organizations_url":"https://api.github.com/users/ComeBurguburu/orgs","repos_url":"https://api.github.com/users/ComeBurguburu/repos","events_url":"https://api.github.com/users/ComeBurguburu/events{/privacy}","received_events_url":"https://api.github.com/users/ComeBurguburu/received_events","type":"User","site_admin":false},"repo":{"id":29259369,"name":"chosen","full_name":"ComeBurguburu/chosen","owner":{"login":"ComeBurguburu","id":10062185,"avatar_url":"https://avatars.githubusercontent.com/u/10062185?v=3","gravatar_id":"","url":"https://api.github.com/users/ComeBurguburu","html_url":"https://github.com/ComeBurguburu","followers_url":"https://api.github.com/users/ComeBurguburu/followers","following_url":"https://api.github.com/users/ComeBurguburu/following{/other_user}","gists_url":"https://api.github.com/users/ComeBurguburu/gists{/gist_id}","starred_url":"https://api.github.com/users/ComeBurguburu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComeBurguburu/subscriptions","organizations_url":"https://api.github.com/users/ComeBurguburu/orgs","repos_url":"https://api.github.com/users/ComeBurguburu/repos","events_url":"https://api.github.com/users/ComeBurguburu/events{/privacy}","received_events_url":"https://api.github.com/users/ComeBurguburu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ComeBurguburu/chosen","description":"Chosen is a library for making long, unwieldy select boxes more friendly.","fork":true,"url":"https://api.github.com/repos/ComeBurguburu/chosen","forks_url":"https://api.github.com/repos/ComeBurguburu/chosen/forks","keys_url":"https://api.github.com/repos/ComeBurguburu/chosen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ComeBurguburu/chosen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ComeBurguburu/chosen/teams","hooks_url":"https://api.github.com/repos/ComeBurguburu/chosen/hooks","issue_events_url":"https://api.github.com/repos/ComeBurguburu/chosen/issues/events{/number}","events_url":"https://api.github.com/repos/ComeBurguburu/chosen/events","assignees_url":"https://api.github.com/repos/ComeBurguburu/chosen/assignees{/user}","branches_url":"https://api.github.com/repos/ComeBurguburu/chosen/branches{/branch}","tags_url":"https://api.github.com/repos/ComeBurguburu/chosen/tags","blobs_url":"https://api.github.com/repos/ComeBurguburu/chosen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ComeBurguburu/chosen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ComeBurguburu/chosen/git/refs{/sha}","trees_url":"https://api.github.com/repos/ComeBurguburu/chosen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ComeBurguburu/chosen/statuses/{sha}","languages_url":"https://api.github.com/repos/ComeBurguburu/chosen/languages","stargazers_url":"https://api.github.com/repos/ComeBurguburu/chosen/stargazers","contributors_url":"https://api.github.com/repos/ComeBurguburu/chosen/contributors","subscribers_url":"https://api.github.com/repos/ComeBurguburu/chosen/subscribers","subscription_url":"https://api.github.com/repos/ComeBurguburu/chosen/subscription","commits_url":"https://api.github.com/repos/ComeBurguburu/chosen/commits{/sha}","git_commits_url":"https://api.github.com/repos/ComeBurguburu/chosen/git/commits{/sha}","comments_url":"https://api.github.com/repos/ComeBurguburu/chosen/comments{/number}","issue_comment_url":"https://api.github.com/repos/ComeBurguburu/chosen/issues/comments/{number}","contents_url":"https://api.github.com/repos/ComeBurguburu/chosen/contents/{+path}","compare_url":"https://api.github.com/repos/ComeBurguburu/chosen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ComeBurguburu/chosen/merges","archive_url":"https://api.github.com/repos/ComeBurguburu/chosen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ComeBurguburu/chosen/downloads","issues_url":"https://api.github.com/repos/ComeBurguburu/chosen/issues{/number}","pulls_url":"https://api.github.com/repos/ComeBurguburu/chosen/pulls{/number}","milestones_url":"https://api.github.com/repos/ComeBurguburu/chosen/milestones{/number}","notifications_url":"https://api.github.com/repos/ComeBurguburu/chosen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ComeBurguburu/chosen/labels{/name}","releases_url":"https://api.github.com/repos/ComeBurguburu/chosen/releases{/id}","created_at":"2015-01-14T18:37:15Z","updated_at":"2015-01-14T18:46:29Z","pushed_at":"2015-02-10T19:01:48Z","git_url":"git://github.com/ComeBurguburu/chosen.git","ssh_url":"git@github.com:ComeBurguburu/chosen.git","clone_url":"https://github.com/ComeBurguburu/chosen.git","svn_url":"https://github.com/ComeBurguburu/chosen","homepage":"http://harvesthq.github.io/chosen/","size":3245,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"harvesthq:master","ref":"master","sha":"501568a69376c7df2e8db803006f94ff74bcc9f5","user":{"login":"harvesthq","id":43635,"avatar_url":"https://avatars.githubusercontent.com/u/43635?v=3","gravatar_id":"","url":"https://api.github.com/users/harvesthq","html_url":"https://github.com/harvesthq","followers_url":"https://api.github.com/users/harvesthq/followers","following_url":"https://api.github.com/users/harvesthq/following{/other_user}","gists_url":"https://api.github.com/users/harvesthq/gists{/gist_id}","starred_url":"https://api.github.com/users/harvesthq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvesthq/subscriptions","organizations_url":"https://api.github.com/users/harvesthq/orgs","repos_url":"https://api.github.com/users/harvesthq/repos","events_url":"https://api.github.com/users/harvesthq/events{/privacy}","received_events_url":"https://api.github.com/users/harvesthq/received_events","type":"Organization","site_admin":false},"repo":{"id":1631024,"name":"chosen","full_name":"harvesthq/chosen","owner":{"login":"harvesthq","id":43635,"avatar_url":"https://avatars.githubusercontent.com/u/43635?v=3","gravatar_id":"","url":"https://api.github.com/users/harvesthq","html_url":"https://github.com/harvesthq","followers_url":"https://api.github.com/users/harvesthq/followers","following_url":"https://api.github.com/users/harvesthq/following{/other_user}","gists_url":"https://api.github.com/users/harvesthq/gists{/gist_id}","starred_url":"https://api.github.com/users/harvesthq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvesthq/subscriptions","organizations_url":"https://api.github.com/users/harvesthq/orgs","repos_url":"https://api.github.com/users/harvesthq/repos","events_url":"https://api.github.com/users/harvesthq/events{/privacy}","received_events_url":"https://api.github.com/users/harvesthq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harvesthq/chosen","description":"Chosen is a library for making long, unwieldy select boxes more friendly.","fork":false,"url":"https://api.github.com/repos/harvesthq/chosen","forks_url":"https://api.github.com/repos/harvesthq/chosen/forks","keys_url":"https://api.github.com/repos/harvesthq/chosen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harvesthq/chosen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harvesthq/chosen/teams","hooks_url":"https://api.github.com/repos/harvesthq/chosen/hooks","issue_events_url":"https://api.github.com/repos/harvesthq/chosen/issues/events{/number}","events_url":"https://api.github.com/repos/harvesthq/chosen/events","assignees_url":"https://api.github.com/repos/harvesthq/chosen/assignees{/user}","branches_url":"https://api.github.com/repos/harvesthq/chosen/branches{/branch}","tags_url":"https://api.github.com/repos/harvesthq/chosen/tags","blobs_url":"https://api.github.com/repos/harvesthq/chosen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harvesthq/chosen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harvesthq/chosen/git/refs{/sha}","trees_url":"https://api.github.com/repos/harvesthq/chosen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harvesthq/chosen/statuses/{sha}","languages_url":"https://api.github.com/repos/harvesthq/chosen/languages","stargazers_url":"https://api.github.com/repos/harvesthq/chosen/stargazers","contributors_url":"https://api.github.com/repos/harvesthq/chosen/contributors","subscribers_url":"https://api.github.com/repos/harvesthq/chosen/subscribers","subscription_url":"https://api.github.com/repos/harvesthq/chosen/subscription","commits_url":"https://api.github.com/repos/harvesthq/chosen/commits{/sha}","git_commits_url":"https://api.github.com/repos/harvesthq/chosen/git/commits{/sha}","comments_url":"https://api.github.com/repos/harvesthq/chosen/comments{/number}","issue_comment_url":"https://api.github.com/repos/harvesthq/chosen/issues/comments/{number}","contents_url":"https://api.github.com/repos/harvesthq/chosen/contents/{+path}","compare_url":"https://api.github.com/repos/harvesthq/chosen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harvesthq/chosen/merges","archive_url":"https://api.github.com/repos/harvesthq/chosen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harvesthq/chosen/downloads","issues_url":"https://api.github.com/repos/harvesthq/chosen/issues{/number}","pulls_url":"https://api.github.com/repos/harvesthq/chosen/pulls{/number}","milestones_url":"https://api.github.com/repos/harvesthq/chosen/milestones{/number}","notifications_url":"https://api.github.com/repos/harvesthq/chosen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harvesthq/chosen/labels{/name}","releases_url":"https://api.github.com/repos/harvesthq/chosen/releases{/id}","created_at":"2011-04-18T15:07:41Z","updated_at":"2015-02-10T16:21:02Z","pushed_at":"2015-01-30T03:02:06Z","git_url":"git://github.com/harvesthq/chosen.git","ssh_url":"git@github.com:harvesthq/chosen.git","clone_url":"https://github.com/harvesthq/chosen.git","svn_url":"https://github.com/harvesthq/chosen","homepage":"http://harvesthq.github.io/chosen/","size":10741,"stargazers_count":16987,"watchers_count":16987,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3242,"mirror_url":null,"open_issues_count":319,"forks":3242,"open_issues":319,"watchers":16987,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/harvesthq/chosen/pulls/2231"},"html":{"href":"https://github.com/harvesthq/chosen/pull/2231"},"issue":{"href":"https://api.github.com/repos/harvesthq/chosen/issues/2231"},"comments":{"href":"https://api.github.com/repos/harvesthq/chosen/issues/2231/comments"},"review_comments":{"href":"https://api.github.com/repos/harvesthq/chosen/pulls/2231/comments"},"review_comment":{"href":"https://api.github.com/repos/harvesthq/chosen/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/harvesthq/chosen/pulls/2231/commits"},"statuses":{"href":"https://api.github.com/repos/harvesthq/chosen/statuses/da8f669908137bd37f138b7f6edd7e1b8ab88079"}}}}