{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/machtfit/django-oscar/pulls/5","id":50375149,"html_url":"https://github.com/machtfit/django-oscar/pull/5","diff_url":"https://github.com/machtfit/django-oscar/pull/5.diff","patch_url":"https://github.com/machtfit/django-oscar/pull/5.patch","issue_url":"https://api.github.com/repos/machtfit/django-oscar/issues/5","number":5,"state":"closed","locked":false,"title":"Delegate widget initialization only for window.document","user":{"login":"or","id":6608430,"avatar_url":"https://avatars.githubusercontent.com/u/6608430?v=3","gravatar_id":"","url":"https://api.github.com/users/or","html_url":"https://github.com/or","followers_url":"https://api.github.com/users/or/followers","following_url":"https://api.github.com/users/or/following{/other_user}","gists_url":"https://api.github.com/users/or/gists{/gist_id}","starred_url":"https://api.github.com/users/or/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/or/subscriptions","organizations_url":"https://api.github.com/users/or/orgs","repos_url":"https://api.github.com/users/or/repos","events_url":"https://api.github.com/users/or/events{/privacy}","received_events_url":"https://api.github.com/users/or/received_events","type":"User","site_admin":false},"body":"initWidgets() is used by JS code here and there for newly added\r\nelements, in that case the elements must be initialized immediately, as\r\nthe code sometimes uses those elements right away and relies on them\r\nbeing initialized.\r\n\r\nIn particular a newly added datetime widget that wasn't initialized\r\nproperly was automatically filled with a date/time, which used the\r\ndefault locale, because the initialization hadn't happened yet.\r\n\r\nThe solution used here is to only use the mouseover delegation when\r\nwindow.document is passed as the node to be initialized, as this happens\r\nduring page load. Any *specific* elements given are initialized\r\nimmediately, so the calling context can be sure those widgets are ready.","created_at":"2015-11-11T11:47:52Z","updated_at":"2015-11-11T12:16:29Z","closed_at":"2015-11-11T12:16:29Z","merged_at":"2015-11-11T12:16:29Z","merge_commit_sha":"adaa09282371a7894157e549a7ba066f3635ca2d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/machtfit/django-oscar/pulls/5/commits","review_comments_url":"https://api.github.com/repos/machtfit/django-oscar/pulls/5/comments","review_comment_url":"https://api.github.com/repos/machtfit/django-oscar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/machtfit/django-oscar/issues/5/comments","statuses_url":"https://api.github.com/repos/machtfit/django-oscar/statuses/2b737ca2ddbd1ac4ec075278524683a6fc1bc112","head":{"label":"machtfit:machtfit-dev","ref":"machtfit-dev","sha":"2b737ca2ddbd1ac4ec075278524683a6fc1bc112","user":{"login":"machtfit","id":6735834,"avatar_url":"https://avatars.githubusercontent.com/u/6735834?v=3","gravatar_id":"","url":"https://api.github.com/users/machtfit","html_url":"https://github.com/machtfit","followers_url":"https://api.github.com/users/machtfit/followers","following_url":"https://api.github.com/users/machtfit/following{/other_user}","gists_url":"https://api.github.com/users/machtfit/gists{/gist_id}","starred_url":"https://api.github.com/users/machtfit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machtfit/subscriptions","organizations_url":"https://api.github.com/users/machtfit/orgs","repos_url":"https://api.github.com/users/machtfit/repos","events_url":"https://api.github.com/users/machtfit/events{/privacy}","received_events_url":"https://api.github.com/users/machtfit/received_events","type":"Organization","site_admin":false},"repo":{"id":14167279,"name":"django-oscar","full_name":"machtfit/django-oscar","owner":{"login":"machtfit","id":6735834,"avatar_url":"https://avatars.githubusercontent.com/u/6735834?v=3","gravatar_id":"","url":"https://api.github.com/users/machtfit","html_url":"https://github.com/machtfit","followers_url":"https://api.github.com/users/machtfit/followers","following_url":"https://api.github.com/users/machtfit/following{/other_user}","gists_url":"https://api.github.com/users/machtfit/gists{/gist_id}","starred_url":"https://api.github.com/users/machtfit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machtfit/subscriptions","organizations_url":"https://api.github.com/users/machtfit/orgs","repos_url":"https://api.github.com/users/machtfit/repos","events_url":"https://api.github.com/users/machtfit/events{/privacy}","received_events_url":"https://api.github.com/users/machtfit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/machtfit/django-oscar","description":"Domain-driven e-commerce for Django","fork":true,"url":"https://api.github.com/repos/machtfit/django-oscar","forks_url":"https://api.github.com/repos/machtfit/django-oscar/forks","keys_url":"https://api.github.com/repos/machtfit/django-oscar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/machtfit/django-oscar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/machtfit/django-oscar/teams","hooks_url":"https://api.github.com/repos/machtfit/django-oscar/hooks","issue_events_url":"https://api.github.com/repos/machtfit/django-oscar/issues/events{/number}","events_url":"https://api.github.com/repos/machtfit/django-oscar/events","assignees_url":"https://api.github.com/repos/machtfit/django-oscar/assignees{/user}","branches_url":"https://api.github.com/repos/machtfit/django-oscar/branches{/branch}","tags_url":"https://api.github.com/repos/machtfit/django-oscar/tags","blobs_url":"https://api.github.com/repos/machtfit/django-oscar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/machtfit/django-oscar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/machtfit/django-oscar/git/refs{/sha}","trees_url":"https://api.github.com/repos/machtfit/django-oscar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/machtfit/django-oscar/statuses/{sha}","languages_url":"https://api.github.com/repos/machtfit/django-oscar/languages","stargazers_url":"https://api.github.com/repos/machtfit/django-oscar/stargazers","contributors_url":"https://api.github.com/repos/machtfit/django-oscar/contributors","subscribers_url":"https://api.github.com/repos/machtfit/django-oscar/subscribers","subscription_url":"https://api.github.com/repos/machtfit/django-oscar/subscription","commits_url":"https://api.github.com/repos/machtfit/django-oscar/commits{/sha}","git_commits_url":"https://api.github.com/repos/machtfit/django-oscar/git/commits{/sha}","comments_url":"https://api.github.com/repos/machtfit/django-oscar/comments{/number}","issue_comment_url":"https://api.github.com/repos/machtfit/django-oscar/issues/comments{/number}","contents_url":"https://api.github.com/repos/machtfit/django-oscar/contents/{+path}","compare_url":"https://api.github.com/repos/machtfit/django-oscar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/machtfit/django-oscar/merges","archive_url":"https://api.github.com/repos/machtfit/django-oscar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/machtfit/django-oscar/downloads","issues_url":"https://api.github.com/repos/machtfit/django-oscar/issues{/number}","pulls_url":"https://api.github.com/repos/machtfit/django-oscar/pulls{/number}","milestones_url":"https://api.github.com/repos/machtfit/django-oscar/milestones{/number}","notifications_url":"https://api.github.com/repos/machtfit/django-oscar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/machtfit/django-oscar/labels{/name}","releases_url":"https://api.github.com/repos/machtfit/django-oscar/releases{/id}","created_at":"2013-11-06T08:44:34Z","updated_at":"2015-05-08T17:28:25Z","pushed_at":"2015-11-11T12:16:28Z","git_url":"git://github.com/machtfit/django-oscar.git","ssh_url":"git@github.com:machtfit/django-oscar.git","clone_url":"https://github.com/machtfit/django-oscar.git","svn_url":"https://github.com/machtfit/django-oscar","homepage":"http://oscarcommerce.com","size":78893,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"machtfit"}},"base":{"label":"machtfit:machtfit","ref":"machtfit","sha":"51ecf4ccde29b2aff2cf4a24a4871a8b92c29ffb","user":{"login":"machtfit","id":6735834,"avatar_url":"https://avatars.githubusercontent.com/u/6735834?v=3","gravatar_id":"","url":"https://api.github.com/users/machtfit","html_url":"https://github.com/machtfit","followers_url":"https://api.github.com/users/machtfit/followers","following_url":"https://api.github.com/users/machtfit/following{/other_user}","gists_url":"https://api.github.com/users/machtfit/gists{/gist_id}","starred_url":"https://api.github.com/users/machtfit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machtfit/subscriptions","organizations_url":"https://api.github.com/users/machtfit/orgs","repos_url":"https://api.github.com/users/machtfit/repos","events_url":"https://api.github.com/users/machtfit/events{/privacy}","received_events_url":"https://api.github.com/users/machtfit/received_events","type":"Organization","site_admin":false},"repo":{"id":14167279,"name":"django-oscar","full_name":"machtfit/django-oscar","owner":{"login":"machtfit","id":6735834,"avatar_url":"https://avatars.githubusercontent.com/u/6735834?v=3","gravatar_id":"","url":"https://api.github.com/users/machtfit","html_url":"https://github.com/machtfit","followers_url":"https://api.github.com/users/machtfit/followers","following_url":"https://api.github.com/users/machtfit/following{/other_user}","gists_url":"https://api.github.com/users/machtfit/gists{/gist_id}","starred_url":"https://api.github.com/users/machtfit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machtfit/subscriptions","organizations_url":"https://api.github.com/users/machtfit/orgs","repos_url":"https://api.github.com/users/machtfit/repos","events_url":"https://api.github.com/users/machtfit/events{/privacy}","received_events_url":"https://api.github.com/users/machtfit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/machtfit/django-oscar","description":"Domain-driven e-commerce for Django","fork":true,"url":"https://api.github.com/repos/machtfit/django-oscar","forks_url":"https://api.github.com/repos/machtfit/django-oscar/forks","keys_url":"https://api.github.com/repos/machtfit/django-oscar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/machtfit/django-oscar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/machtfit/django-oscar/teams","hooks_url":"https://api.github.com/repos/machtfit/django-oscar/hooks","issue_events_url":"https://api.github.com/repos/machtfit/django-oscar/issues/events{/number}","events_url":"https://api.github.com/repos/machtfit/django-oscar/events","assignees_url":"https://api.github.com/repos/machtfit/django-oscar/assignees{/user}","branches_url":"https://api.github.com/repos/machtfit/django-oscar/branches{/branch}","tags_url":"https://api.github.com/repos/machtfit/django-oscar/tags","blobs_url":"https://api.github.com/repos/machtfit/django-oscar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/machtfit/django-oscar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/machtfit/django-oscar/git/refs{/sha}","trees_url":"https://api.github.com/repos/machtfit/django-oscar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/machtfit/django-oscar/statuses/{sha}","languages_url":"https://api.github.com/repos/machtfit/django-oscar/languages","stargazers_url":"https://api.github.com/repos/machtfit/django-oscar/stargazers","contributors_url":"https://api.github.com/repos/machtfit/django-oscar/contributors","subscribers_url":"https://api.github.com/repos/machtfit/django-oscar/subscribers","subscription_url":"https://api.github.com/repos/machtfit/django-oscar/subscription","commits_url":"https://api.github.com/repos/machtfit/django-oscar/commits{/sha}","git_commits_url":"https://api.github.com/repos/machtfit/django-oscar/git/commits{/sha}","comments_url":"https://api.github.com/repos/machtfit/django-oscar/comments{/number}","issue_comment_url":"https://api.github.com/repos/machtfit/django-oscar/issues/comments{/number}","contents_url":"https://api.github.com/repos/machtfit/django-oscar/contents/{+path}","compare_url":"https://api.github.com/repos/machtfit/django-oscar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/machtfit/django-oscar/merges","archive_url":"https://api.github.com/repos/machtfit/django-oscar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/machtfit/django-oscar/downloads","issues_url":"https://api.github.com/repos/machtfit/django-oscar/issues{/number}","pulls_url":"https://api.github.com/repos/machtfit/django-oscar/pulls{/number}","milestones_url":"https://api.github.com/repos/machtfit/django-oscar/milestones{/number}","notifications_url":"https://api.github.com/repos/machtfit/django-oscar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/machtfit/django-oscar/labels{/name}","releases_url":"https://api.github.com/repos/machtfit/django-oscar/releases{/id}","created_at":"2013-11-06T08:44:34Z","updated_at":"2015-05-08T17:28:25Z","pushed_at":"2015-11-11T12:16:28Z","git_url":"git://github.com/machtfit/django-oscar.git","ssh_url":"git@github.com:machtfit/django-oscar.git","clone_url":"https://github.com/machtfit/django-oscar.git","svn_url":"https://github.com/machtfit/django-oscar","homepage":"http://oscarcommerce.com","size":78893,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"machtfit"}},"_links":{"self":{"href":"https://api.github.com/repos/machtfit/django-oscar/pulls/5"},"html":{"href":"https://github.com/machtfit/django-oscar/pull/5"},"issue":{"href":"https://api.github.com/repos/machtfit/django-oscar/issues/5"},"comments":{"href":"https://api.github.com/repos/machtfit/django-oscar/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/machtfit/django-oscar/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/machtfit/django-oscar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/machtfit/django-oscar/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/machtfit/django-oscar/statuses/2b737ca2ddbd1ac4ec075278524683a6fc1bc112"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"or","id":6608430,"avatar_url":"https://avatars.githubusercontent.com/u/6608430?v=3","gravatar_id":"","url":"https://api.github.com/users/or","html_url":"https://github.com/or","followers_url":"https://api.github.com/users/or/followers","following_url":"https://api.github.com/users/or/following{/other_user}","gists_url":"https://api.github.com/users/or/gists{/gist_id}","starred_url":"https://api.github.com/users/or/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/or/subscriptions","organizations_url":"https://api.github.com/users/or/orgs","repos_url":"https://api.github.com/users/or/repos","events_url":"https://api.github.com/users/or/events{/privacy}","received_events_url":"https://api.github.com/users/or/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":62,"deletions":34,"changed_files":1}}