{"action":"closed","number":1703,"pull_request":{"url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/pulls/1703","id":52756145,"html_url":"https://github.com/eternicode/bootstrap-datepicker/pull/1703","diff_url":"https://github.com/eternicode/bootstrap-datepicker/pull/1703.diff","patch_url":"https://github.com/eternicode/bootstrap-datepicker/pull/1703.patch","issue_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1703","number":1703,"state":"closed","locked":false,"title":"Export datepicker function if CommonJS module","user":{"login":"vshulev","id":5750234,"avatar_url":"https://avatars.githubusercontent.com/u/5750234?v=3","gravatar_id":"","url":"https://api.github.com/users/vshulev","html_url":"https://github.com/vshulev","followers_url":"https://api.github.com/users/vshulev/followers","following_url":"https://api.github.com/users/vshulev/following{/other_user}","gists_url":"https://api.github.com/users/vshulev/gists{/gist_id}","starred_url":"https://api.github.com/users/vshulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshulev/subscriptions","organizations_url":"https://api.github.com/users/vshulev/orgs","repos_url":"https://api.github.com/users/vshulev/repos","events_url":"https://api.github.com/users/vshulev/events{/privacy}","received_events_url":"https://api.github.com/users/vshulev/received_events","type":"User","site_admin":false},"body":"Add the factory function to module.exports, so that an instance of jQuery can be passed when the module is require'd in a CommonJS environment. The current apporach doesn't seem to work as jQuery creates a new instance for every time it is require'd.","created_at":"2015-12-05T14:40:49Z","updated_at":"2015-12-06T14:01:32Z","closed_at":"2015-12-06T14:01:32Z","merged_at":null,"merge_commit_sha":"5cf0736854f193439eb6f1ee0be5aa844dfabdea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/pulls/1703/commits","review_comments_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/pulls/1703/comments","review_comment_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1703/comments","statuses_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/statuses/ec5026c1645b0e9789494783cb8374afac39536e","head":{"label":"vshulev:commonjs_fix","ref":"commonjs_fix","sha":"ec5026c1645b0e9789494783cb8374afac39536e","user":{"login":"vshulev","id":5750234,"avatar_url":"https://avatars.githubusercontent.com/u/5750234?v=3","gravatar_id":"","url":"https://api.github.com/users/vshulev","html_url":"https://github.com/vshulev","followers_url":"https://api.github.com/users/vshulev/followers","following_url":"https://api.github.com/users/vshulev/following{/other_user}","gists_url":"https://api.github.com/users/vshulev/gists{/gist_id}","starred_url":"https://api.github.com/users/vshulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshulev/subscriptions","organizations_url":"https://api.github.com/users/vshulev/orgs","repos_url":"https://api.github.com/users/vshulev/repos","events_url":"https://api.github.com/users/vshulev/events{/privacy}","received_events_url":"https://api.github.com/users/vshulev/received_events","type":"User","site_admin":false},"repo":{"id":47458836,"name":"bootstrap-datepicker","full_name":"vshulev/bootstrap-datepicker","owner":{"login":"vshulev","id":5750234,"avatar_url":"https://avatars.githubusercontent.com/u/5750234?v=3","gravatar_id":"","url":"https://api.github.com/users/vshulev","html_url":"https://github.com/vshulev","followers_url":"https://api.github.com/users/vshulev/followers","following_url":"https://api.github.com/users/vshulev/following{/other_user}","gists_url":"https://api.github.com/users/vshulev/gists{/gist_id}","starred_url":"https://api.github.com/users/vshulev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshulev/subscriptions","organizations_url":"https://api.github.com/users/vshulev/orgs","repos_url":"https://api.github.com/users/vshulev/repos","events_url":"https://api.github.com/users/vshulev/events{/privacy}","received_events_url":"https://api.github.com/users/vshulev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vshulev/bootstrap-datepicker","description":"A datepicker for @twitter bootstrap forked from Stefan Petre's (of eyecon.ro), improvements by @eternicode","fork":true,"url":"https://api.github.com/repos/vshulev/bootstrap-datepicker","forks_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/forks","keys_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/teams","hooks_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/hooks","issue_events_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/issues/events{/number}","events_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/events","assignees_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/assignees{/user}","branches_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/branches{/branch}","tags_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/tags","blobs_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/git/refs{/sha}","trees_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/statuses/{sha}","languages_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/languages","stargazers_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/stargazers","contributors_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/contributors","subscribers_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/subscribers","subscription_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/subscription","commits_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/commits{/sha}","git_commits_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/git/commits{/sha}","comments_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/comments{/number}","issue_comment_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/issues/comments{/number}","contents_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/contents/{+path}","compare_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/merges","archive_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/downloads","issues_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/issues{/number}","pulls_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/pulls{/number}","milestones_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/milestones{/number}","notifications_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/labels{/name}","releases_url":"https://api.github.com/repos/vshulev/bootstrap-datepicker/releases{/id}","created_at":"2015-12-05T14:26:39Z","updated_at":"2015-12-05T14:26:40Z","pushed_at":"2015-12-05T17:33:08Z","git_url":"git://github.com/vshulev/bootstrap-datepicker.git","ssh_url":"git@github.com:vshulev/bootstrap-datepicker.git","clone_url":"https://github.com/vshulev/bootstrap-datepicker.git","svn_url":"https://github.com/vshulev/bootstrap-datepicker","homepage":"","size":3303,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"eternicode:master","ref":"master","sha":"04afa088b99b0705bf7a218a1aa5f5b4bf612af9","user":{"login":"eternicode","id":324189,"avatar_url":"https://avatars.githubusercontent.com/u/324189?v=3","gravatar_id":"","url":"https://api.github.com/users/eternicode","html_url":"https://github.com/eternicode","followers_url":"https://api.github.com/users/eternicode/followers","following_url":"https://api.github.com/users/eternicode/following{/other_user}","gists_url":"https://api.github.com/users/eternicode/gists{/gist_id}","starred_url":"https://api.github.com/users/eternicode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eternicode/subscriptions","organizations_url":"https://api.github.com/users/eternicode/orgs","repos_url":"https://api.github.com/users/eternicode/repos","events_url":"https://api.github.com/users/eternicode/events{/privacy}","received_events_url":"https://api.github.com/users/eternicode/received_events","type":"User","site_admin":false},"repo":{"id":3744545,"name":"bootstrap-datepicker","full_name":"eternicode/bootstrap-datepicker","owner":{"login":"eternicode","id":324189,"avatar_url":"https://avatars.githubusercontent.com/u/324189?v=3","gravatar_id":"","url":"https://api.github.com/users/eternicode","html_url":"https://github.com/eternicode","followers_url":"https://api.github.com/users/eternicode/followers","following_url":"https://api.github.com/users/eternicode/following{/other_user}","gists_url":"https://api.github.com/users/eternicode/gists{/gist_id}","starred_url":"https://api.github.com/users/eternicode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eternicode/subscriptions","organizations_url":"https://api.github.com/users/eternicode/orgs","repos_url":"https://api.github.com/users/eternicode/repos","events_url":"https://api.github.com/users/eternicode/events{/privacy}","received_events_url":"https://api.github.com/users/eternicode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eternicode/bootstrap-datepicker","description":"A datepicker for @twitter bootstrap forked from Stefan Petre's (of eyecon.ro), improvements by @eternicode","fork":false,"url":"https://api.github.com/repos/eternicode/bootstrap-datepicker","forks_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/forks","keys_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/teams","hooks_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/hooks","issue_events_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/events{/number}","events_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/events","assignees_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/assignees{/user}","branches_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/branches{/branch}","tags_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/tags","blobs_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/git/refs{/sha}","trees_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/statuses/{sha}","languages_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/languages","stargazers_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/stargazers","contributors_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/contributors","subscribers_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/subscribers","subscription_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/subscription","commits_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/commits{/sha}","git_commits_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/git/commits{/sha}","comments_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/comments{/number}","issue_comment_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/comments{/number}","contents_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/contents/{+path}","compare_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/merges","archive_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/downloads","issues_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues{/number}","pulls_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/pulls{/number}","milestones_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/milestones{/number}","notifications_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/labels{/name}","releases_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/releases{/id}","created_at":"2012-03-17T01:11:40Z","updated_at":"2015-12-06T13:18:47Z","pushed_at":"2015-12-05T15:17:29Z","git_url":"git://github.com/eternicode/bootstrap-datepicker.git","ssh_url":"git@github.com:eternicode/bootstrap-datepicker.git","clone_url":"https://github.com/eternicode/bootstrap-datepicker.git","svn_url":"https://github.com/eternicode/bootstrap-datepicker","homepage":"","size":6138,"stargazers_count":7344,"watchers_count":7344,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3025,"mirror_url":null,"open_issues_count":411,"forks":3025,"open_issues":411,"watchers":7344,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eternicode/bootstrap-datepicker/pulls/1703"},"html":{"href":"https://github.com/eternicode/bootstrap-datepicker/pull/1703"},"issue":{"href":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1703"},"comments":{"href":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1703/comments"},"review_comments":{"href":"https://api.github.com/repos/eternicode/bootstrap-datepicker/pulls/1703/comments"},"review_comment":{"href":"https://api.github.com/repos/eternicode/bootstrap-datepicker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eternicode/bootstrap-datepicker/pulls/1703/commits"},"statuses":{"href":"https://api.github.com/repos/eternicode/bootstrap-datepicker/statuses/ec5026c1645b0e9789494783cb8374afac39536e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":4,"deletions":3,"changed_files":2}}