{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/websemantics/Image-Select/pulls/18","id":40177338,"html_url":"https://github.com/websemantics/Image-Select/pull/18","diff_url":"https://github.com/websemantics/Image-Select/pull/18.diff","patch_url":"https://github.com/websemantics/Image-Select/pull/18.patch","issue_url":"https://api.github.com/repos/websemantics/Image-Select/issues/18","number":18,"state":"open","locked":false,"title":"Fix the case where no elements have been selected","user":{"login":"iamcal","id":173750,"avatar_url":"https://avatars.githubusercontent.com/u/173750?v=3","gravatar_id":"","url":"https://api.github.com/users/iamcal","html_url":"https://github.com/iamcal","followers_url":"https://api.github.com/users/iamcal/followers","following_url":"https://api.github.com/users/iamcal/following{/other_user}","gists_url":"https://api.github.com/users/iamcal/gists{/gist_id}","starred_url":"https://api.github.com/users/iamcal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamcal/subscriptions","organizations_url":"https://api.github.com/users/iamcal/orgs","repos_url":"https://api.github.com/users/iamcal/repos","events_url":"https://api.github.com/users/iamcal/events{/privacy}","received_events_url":"https://api.github.com/users/iamcal/received_events","type":"User","site_admin":false},"body":"Suppose your code looks like this:\r\n\r\n    $('select.user-picker').chosen({});\r\n\r\nIf the selector matches no elements, then the `chosen()` function still gets run. The value for `$this` (_not_ `$(this)`) never gets set, but then is used.","created_at":"2015-07-16T21:20:02Z","updated_at":"2015-07-16T21:20:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/websemantics/Image-Select/pulls/18/commits","review_comments_url":"https://api.github.com/repos/websemantics/Image-Select/pulls/18/comments","review_comment_url":"https://api.github.com/repos/websemantics/Image-Select/pulls/comments{/number}","comments_url":"https://api.github.com/repos/websemantics/Image-Select/issues/18/comments","statuses_url":"https://api.github.com/repos/websemantics/Image-Select/statuses/16d131ee8c1163e8597a289294f6f1391bad2902","head":{"label":"iamcal:master","ref":"master","sha":"16d131ee8c1163e8597a289294f6f1391bad2902","user":{"login":"iamcal","id":173750,"avatar_url":"https://avatars.githubusercontent.com/u/173750?v=3","gravatar_id":"","url":"https://api.github.com/users/iamcal","html_url":"https://github.com/iamcal","followers_url":"https://api.github.com/users/iamcal/followers","following_url":"https://api.github.com/users/iamcal/following{/other_user}","gists_url":"https://api.github.com/users/iamcal/gists{/gist_id}","starred_url":"https://api.github.com/users/iamcal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamcal/subscriptions","organizations_url":"https://api.github.com/users/iamcal/orgs","repos_url":"https://api.github.com/users/iamcal/repos","events_url":"https://api.github.com/users/iamcal/events{/privacy}","received_events_url":"https://api.github.com/users/iamcal/received_events","type":"User","site_admin":false},"repo":{"id":39220954,"name":"Image-Select","full_name":"iamcal/Image-Select","owner":{"login":"iamcal","id":173750,"avatar_url":"https://avatars.githubusercontent.com/u/173750?v=3","gravatar_id":"","url":"https://api.github.com/users/iamcal","html_url":"https://github.com/iamcal","followers_url":"https://api.github.com/users/iamcal/followers","following_url":"https://api.github.com/users/iamcal/following{/other_user}","gists_url":"https://api.github.com/users/iamcal/gists{/gist_id}","starred_url":"https://api.github.com/users/iamcal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamcal/subscriptions","organizations_url":"https://api.github.com/users/iamcal/orgs","repos_url":"https://api.github.com/users/iamcal/repos","events_url":"https://api.github.com/users/iamcal/events{/privacy}","received_events_url":"https://api.github.com/users/iamcal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iamcal/Image-Select","description":"Image Select is an extension of Chosen (https://github.com/harvesthq/chosen) a jQuery plugin that makes long, unwieldy select boxes much more user-friendly. It provides image support for Single and Multi select HTML tags.","fork":true,"url":"https://api.github.com/repos/iamcal/Image-Select","forks_url":"https://api.github.com/repos/iamcal/Image-Select/forks","keys_url":"https://api.github.com/repos/iamcal/Image-Select/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iamcal/Image-Select/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iamcal/Image-Select/teams","hooks_url":"https://api.github.com/repos/iamcal/Image-Select/hooks","issue_events_url":"https://api.github.com/repos/iamcal/Image-Select/issues/events{/number}","events_url":"https://api.github.com/repos/iamcal/Image-Select/events","assignees_url":"https://api.github.com/repos/iamcal/Image-Select/assignees{/user}","branches_url":"https://api.github.com/repos/iamcal/Image-Select/branches{/branch}","tags_url":"https://api.github.com/repos/iamcal/Image-Select/tags","blobs_url":"https://api.github.com/repos/iamcal/Image-Select/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iamcal/Image-Select/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iamcal/Image-Select/git/refs{/sha}","trees_url":"https://api.github.com/repos/iamcal/Image-Select/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iamcal/Image-Select/statuses/{sha}","languages_url":"https://api.github.com/repos/iamcal/Image-Select/languages","stargazers_url":"https://api.github.com/repos/iamcal/Image-Select/stargazers","contributors_url":"https://api.github.com/repos/iamcal/Image-Select/contributors","subscribers_url":"https://api.github.com/repos/iamcal/Image-Select/subscribers","subscription_url":"https://api.github.com/repos/iamcal/Image-Select/subscription","commits_url":"https://api.github.com/repos/iamcal/Image-Select/commits{/sha}","git_commits_url":"https://api.github.com/repos/iamcal/Image-Select/git/commits{/sha}","comments_url":"https://api.github.com/repos/iamcal/Image-Select/comments{/number}","issue_comment_url":"https://api.github.com/repos/iamcal/Image-Select/issues/comments{/number}","contents_url":"https://api.github.com/repos/iamcal/Image-Select/contents/{+path}","compare_url":"https://api.github.com/repos/iamcal/Image-Select/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iamcal/Image-Select/merges","archive_url":"https://api.github.com/repos/iamcal/Image-Select/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iamcal/Image-Select/downloads","issues_url":"https://api.github.com/repos/iamcal/Image-Select/issues{/number}","pulls_url":"https://api.github.com/repos/iamcal/Image-Select/pulls{/number}","milestones_url":"https://api.github.com/repos/iamcal/Image-Select/milestones{/number}","notifications_url":"https://api.github.com/repos/iamcal/Image-Select/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iamcal/Image-Select/labels{/name}","releases_url":"https://api.github.com/repos/iamcal/Image-Select/releases{/id}","created_at":"2015-07-16T21:18:07Z","updated_at":"2015-07-16T21:18:08Z","pushed_at":"2015-07-16T21:18:43Z","git_url":"git://github.com/iamcal/Image-Select.git","ssh_url":"git@github.com:iamcal/Image-Select.git","clone_url":"https://github.com/iamcal/Image-Select.git","svn_url":"https://github.com/iamcal/Image-Select","homepage":"http://websemantics.github.io/Image-Select ","size":782,"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":"websemantics:master","ref":"master","sha":"86ccf22e223b1fb59cbdcc73a6a5336dd0a540a6","user":{"login":"websemantics","id":2190455,"avatar_url":"https://avatars.githubusercontent.com/u/2190455?v=3","gravatar_id":"","url":"https://api.github.com/users/websemantics","html_url":"https://github.com/websemantics","followers_url":"https://api.github.com/users/websemantics/followers","following_url":"https://api.github.com/users/websemantics/following{/other_user}","gists_url":"https://api.github.com/users/websemantics/gists{/gist_id}","starred_url":"https://api.github.com/users/websemantics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websemantics/subscriptions","organizations_url":"https://api.github.com/users/websemantics/orgs","repos_url":"https://api.github.com/users/websemantics/repos","events_url":"https://api.github.com/users/websemantics/events{/privacy}","received_events_url":"https://api.github.com/users/websemantics/received_events","type":"User","site_admin":false},"repo":{"id":15572796,"name":"Image-Select","full_name":"websemantics/Image-Select","owner":{"login":"websemantics","id":2190455,"avatar_url":"https://avatars.githubusercontent.com/u/2190455?v=3","gravatar_id":"","url":"https://api.github.com/users/websemantics","html_url":"https://github.com/websemantics","followers_url":"https://api.github.com/users/websemantics/followers","following_url":"https://api.github.com/users/websemantics/following{/other_user}","gists_url":"https://api.github.com/users/websemantics/gists{/gist_id}","starred_url":"https://api.github.com/users/websemantics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websemantics/subscriptions","organizations_url":"https://api.github.com/users/websemantics/orgs","repos_url":"https://api.github.com/users/websemantics/repos","events_url":"https://api.github.com/users/websemantics/events{/privacy}","received_events_url":"https://api.github.com/users/websemantics/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/websemantics/Image-Select","description":"Image Select is an extension of Chosen (https://github.com/harvesthq/chosen) a jQuery plugin that makes long, unwieldy select boxes much more user-friendly. It provides image support for Single and Multi select HTML tags.","fork":false,"url":"https://api.github.com/repos/websemantics/Image-Select","forks_url":"https://api.github.com/repos/websemantics/Image-Select/forks","keys_url":"https://api.github.com/repos/websemantics/Image-Select/keys{/key_id}","collaborators_url":"https://api.github.com/repos/websemantics/Image-Select/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/websemantics/Image-Select/teams","hooks_url":"https://api.github.com/repos/websemantics/Image-Select/hooks","issue_events_url":"https://api.github.com/repos/websemantics/Image-Select/issues/events{/number}","events_url":"https://api.github.com/repos/websemantics/Image-Select/events","assignees_url":"https://api.github.com/repos/websemantics/Image-Select/assignees{/user}","branches_url":"https://api.github.com/repos/websemantics/Image-Select/branches{/branch}","tags_url":"https://api.github.com/repos/websemantics/Image-Select/tags","blobs_url":"https://api.github.com/repos/websemantics/Image-Select/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/websemantics/Image-Select/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/websemantics/Image-Select/git/refs{/sha}","trees_url":"https://api.github.com/repos/websemantics/Image-Select/git/trees{/sha}","statuses_url":"https://api.github.com/repos/websemantics/Image-Select/statuses/{sha}","languages_url":"https://api.github.com/repos/websemantics/Image-Select/languages","stargazers_url":"https://api.github.com/repos/websemantics/Image-Select/stargazers","contributors_url":"https://api.github.com/repos/websemantics/Image-Select/contributors","subscribers_url":"https://api.github.com/repos/websemantics/Image-Select/subscribers","subscription_url":"https://api.github.com/repos/websemantics/Image-Select/subscription","commits_url":"https://api.github.com/repos/websemantics/Image-Select/commits{/sha}","git_commits_url":"https://api.github.com/repos/websemantics/Image-Select/git/commits{/sha}","comments_url":"https://api.github.com/repos/websemantics/Image-Select/comments{/number}","issue_comment_url":"https://api.github.com/repos/websemantics/Image-Select/issues/comments{/number}","contents_url":"https://api.github.com/repos/websemantics/Image-Select/contents/{+path}","compare_url":"https://api.github.com/repos/websemantics/Image-Select/compare/{base}...{head}","merges_url":"https://api.github.com/repos/websemantics/Image-Select/merges","archive_url":"https://api.github.com/repos/websemantics/Image-Select/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/websemantics/Image-Select/downloads","issues_url":"https://api.github.com/repos/websemantics/Image-Select/issues{/number}","pulls_url":"https://api.github.com/repos/websemantics/Image-Select/pulls{/number}","milestones_url":"https://api.github.com/repos/websemantics/Image-Select/milestones{/number}","notifications_url":"https://api.github.com/repos/websemantics/Image-Select/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/websemantics/Image-Select/labels{/name}","releases_url":"https://api.github.com/repos/websemantics/Image-Select/releases{/id}","created_at":"2014-01-02T00:54:23Z","updated_at":"2015-07-13T18:47:03Z","pushed_at":"2015-04-23T15:23:41Z","git_url":"git://github.com/websemantics/Image-Select.git","ssh_url":"git@github.com:websemantics/Image-Select.git","clone_url":"https://github.com/websemantics/Image-Select.git","svn_url":"https://github.com/websemantics/Image-Select","homepage":"http://websemantics.github.io/Image-Select ","size":782,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":8,"forks":17,"open_issues":8,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/websemantics/Image-Select/pulls/18"},"html":{"href":"https://github.com/websemantics/Image-Select/pull/18"},"issue":{"href":"https://api.github.com/repos/websemantics/Image-Select/issues/18"},"comments":{"href":"https://api.github.com/repos/websemantics/Image-Select/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/websemantics/Image-Select/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/websemantics/Image-Select/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/websemantics/Image-Select/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/websemantics/Image-Select/statuses/16d131ee8c1163e8597a289294f6f1391bad2902"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":2,"changed_files":1}}