{"action":"opened","number":9876,"pull_request":{"url":"https://api.github.com/repos/piwik/piwik/pulls/9876","id":61686305,"html_url":"https://github.com/piwik/piwik/pull/9876","diff_url":"https://github.com/piwik/piwik/pull/9876.diff","patch_url":"https://github.com/piwik/piwik/pull/9876.patch","issue_url":"https://api.github.com/repos/piwik/piwik/issues/9876","number":9876,"state":"open","locked":false,"title":"Use piwik as window reference","user":{"login":"alexbeletsky","id":304929,"avatar_url":"https://avatars.githubusercontent.com/u/304929?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbeletsky","html_url":"https://github.com/alexbeletsky","followers_url":"https://api.github.com/users/alexbeletsky/followers","following_url":"https://api.github.com/users/alexbeletsky/following{/other_user}","gists_url":"https://api.github.com/users/alexbeletsky/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbeletsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbeletsky/subscriptions","organizations_url":"https://api.github.com/users/alexbeletsky/orgs","repos_url":"https://api.github.com/users/alexbeletsky/repos","events_url":"https://api.github.com/users/alexbeletsky/events{/privacy}","received_events_url":"https://api.github.com/users/alexbeletsky/received_events","type":"User","site_admin":false},"body":"We are using Piwik together with `browserify` and would like to be able to use `require('./piwik.js')` to get the module. Unfortunately, it's not possible since `Piwik` is not assigned to a global namespace with transformations like [deglobalify](https://www.npmjs.com/package/deglobalify).\r\n\r\nThis change would explicitly assign Piwik to `window`, that fixes the issue above.","created_at":"2016-03-04T09:26:53Z","updated_at":"2016-03-04T09:26:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/piwik/piwik/pulls/9876/commits","review_comments_url":"https://api.github.com/repos/piwik/piwik/pulls/9876/comments","review_comment_url":"https://api.github.com/repos/piwik/piwik/pulls/comments{/number}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/9876/comments","statuses_url":"https://api.github.com/repos/piwik/piwik/statuses/2b7cec0c962075b7b838b6135e02efe5216813a0","head":{"label":"blogfoster:script/use-window-for-piwik","ref":"script/use-window-for-piwik","sha":"2b7cec0c962075b7b838b6135e02efe5216813a0","user":{"login":"blogfoster","id":9303473,"avatar_url":"https://avatars.githubusercontent.com/u/9303473?v=3","gravatar_id":"","url":"https://api.github.com/users/blogfoster","html_url":"https://github.com/blogfoster","followers_url":"https://api.github.com/users/blogfoster/followers","following_url":"https://api.github.com/users/blogfoster/following{/other_user}","gists_url":"https://api.github.com/users/blogfoster/gists{/gist_id}","starred_url":"https://api.github.com/users/blogfoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blogfoster/subscriptions","organizations_url":"https://api.github.com/users/blogfoster/orgs","repos_url":"https://api.github.com/users/blogfoster/repos","events_url":"https://api.github.com/users/blogfoster/events{/privacy}","received_events_url":"https://api.github.com/users/blogfoster/received_events","type":"Organization","site_admin":false},"repo":{"id":53120727,"name":"piwik","full_name":"blogfoster/piwik","owner":{"login":"blogfoster","id":9303473,"avatar_url":"https://avatars.githubusercontent.com/u/9303473?v=3","gravatar_id":"","url":"https://api.github.com/users/blogfoster","html_url":"https://github.com/blogfoster","followers_url":"https://api.github.com/users/blogfoster/followers","following_url":"https://api.github.com/users/blogfoster/following{/other_user}","gists_url":"https://api.github.com/users/blogfoster/gists{/gist_id}","starred_url":"https://api.github.com/users/blogfoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blogfoster/subscriptions","organizations_url":"https://api.github.com/users/blogfoster/orgs","repos_url":"https://api.github.com/users/blogfoster/repos","events_url":"https://api.github.com/users/blogfoster/events{/privacy}","received_events_url":"https://api.github.com/users/blogfoster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blogfoster/piwik","description":"Liberating Web Analytics. Star us on Github? +1. Piwik is the leading open alternative to Google Analytics that gives you full control over your data. Piwik lets you easily collect data from websites, apps & the IoT and visualise this data and extract insights. Privacy is built-in. We love Pull Requests! ","fork":true,"url":"https://api.github.com/repos/blogfoster/piwik","forks_url":"https://api.github.com/repos/blogfoster/piwik/forks","keys_url":"https://api.github.com/repos/blogfoster/piwik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blogfoster/piwik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blogfoster/piwik/teams","hooks_url":"https://api.github.com/repos/blogfoster/piwik/hooks","issue_events_url":"https://api.github.com/repos/blogfoster/piwik/issues/events{/number}","events_url":"https://api.github.com/repos/blogfoster/piwik/events","assignees_url":"https://api.github.com/repos/blogfoster/piwik/assignees{/user}","branches_url":"https://api.github.com/repos/blogfoster/piwik/branches{/branch}","tags_url":"https://api.github.com/repos/blogfoster/piwik/tags","blobs_url":"https://api.github.com/repos/blogfoster/piwik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blogfoster/piwik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blogfoster/piwik/git/refs{/sha}","trees_url":"https://api.github.com/repos/blogfoster/piwik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blogfoster/piwik/statuses/{sha}","languages_url":"https://api.github.com/repos/blogfoster/piwik/languages","stargazers_url":"https://api.github.com/repos/blogfoster/piwik/stargazers","contributors_url":"https://api.github.com/repos/blogfoster/piwik/contributors","subscribers_url":"https://api.github.com/repos/blogfoster/piwik/subscribers","subscription_url":"https://api.github.com/repos/blogfoster/piwik/subscription","commits_url":"https://api.github.com/repos/blogfoster/piwik/commits{/sha}","git_commits_url":"https://api.github.com/repos/blogfoster/piwik/git/commits{/sha}","comments_url":"https://api.github.com/repos/blogfoster/piwik/comments{/number}","issue_comment_url":"https://api.github.com/repos/blogfoster/piwik/issues/comments{/number}","contents_url":"https://api.github.com/repos/blogfoster/piwik/contents/{+path}","compare_url":"https://api.github.com/repos/blogfoster/piwik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blogfoster/piwik/merges","archive_url":"https://api.github.com/repos/blogfoster/piwik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blogfoster/piwik/downloads","issues_url":"https://api.github.com/repos/blogfoster/piwik/issues{/number}","pulls_url":"https://api.github.com/repos/blogfoster/piwik/pulls{/number}","milestones_url":"https://api.github.com/repos/blogfoster/piwik/milestones{/number}","notifications_url":"https://api.github.com/repos/blogfoster/piwik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blogfoster/piwik/labels{/name}","releases_url":"https://api.github.com/repos/blogfoster/piwik/releases{/id}","deployments_url":"https://api.github.com/repos/blogfoster/piwik/deployments","created_at":"2016-03-04T08:39:45Z","updated_at":"2016-03-04T08:40:01Z","pushed_at":"2016-03-04T09:22:06Z","git_url":"git://github.com/blogfoster/piwik.git","ssh_url":"git@github.com:blogfoster/piwik.git","clone_url":"https://github.com/blogfoster/piwik.git","svn_url":"https://github.com/blogfoster/piwik","homepage":"http://piwik.org/","size":142895,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"piwik:master","ref":"master","sha":"39f6964dbfd3b66520dd04728b64cdc856a532c3","user":{"login":"piwik","id":698038,"avatar_url":"https://avatars.githubusercontent.com/u/698038?v=3","gravatar_id":"","url":"https://api.github.com/users/piwik","html_url":"https://github.com/piwik","followers_url":"https://api.github.com/users/piwik/followers","following_url":"https://api.github.com/users/piwik/following{/other_user}","gists_url":"https://api.github.com/users/piwik/gists{/gist_id}","starred_url":"https://api.github.com/users/piwik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piwik/subscriptions","organizations_url":"https://api.github.com/users/piwik/orgs","repos_url":"https://api.github.com/users/piwik/repos","events_url":"https://api.github.com/users/piwik/events{/privacy}","received_events_url":"https://api.github.com/users/piwik/received_events","type":"Organization","site_admin":false},"repo":{"id":1548202,"name":"piwik","full_name":"piwik/piwik","owner":{"login":"piwik","id":698038,"avatar_url":"https://avatars.githubusercontent.com/u/698038?v=3","gravatar_id":"","url":"https://api.github.com/users/piwik","html_url":"https://github.com/piwik","followers_url":"https://api.github.com/users/piwik/followers","following_url":"https://api.github.com/users/piwik/following{/other_user}","gists_url":"https://api.github.com/users/piwik/gists{/gist_id}","starred_url":"https://api.github.com/users/piwik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piwik/subscriptions","organizations_url":"https://api.github.com/users/piwik/orgs","repos_url":"https://api.github.com/users/piwik/repos","events_url":"https://api.github.com/users/piwik/events{/privacy}","received_events_url":"https://api.github.com/users/piwik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/piwik/piwik","description":"Liberating Web Analytics. Star us on Github? +1. Piwik is the leading open alternative to Google Analytics that gives you full control over your data. Piwik lets you easily collect data from websites, apps & the IoT and visualise this data and extract insights. Privacy is built-in. We love Pull Requests! ","fork":false,"url":"https://api.github.com/repos/piwik/piwik","forks_url":"https://api.github.com/repos/piwik/piwik/forks","keys_url":"https://api.github.com/repos/piwik/piwik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/piwik/piwik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/piwik/piwik/teams","hooks_url":"https://api.github.com/repos/piwik/piwik/hooks","issue_events_url":"https://api.github.com/repos/piwik/piwik/issues/events{/number}","events_url":"https://api.github.com/repos/piwik/piwik/events","assignees_url":"https://api.github.com/repos/piwik/piwik/assignees{/user}","branches_url":"https://api.github.com/repos/piwik/piwik/branches{/branch}","tags_url":"https://api.github.com/repos/piwik/piwik/tags","blobs_url":"https://api.github.com/repos/piwik/piwik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/piwik/piwik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/piwik/piwik/git/refs{/sha}","trees_url":"https://api.github.com/repos/piwik/piwik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/piwik/piwik/statuses/{sha}","languages_url":"https://api.github.com/repos/piwik/piwik/languages","stargazers_url":"https://api.github.com/repos/piwik/piwik/stargazers","contributors_url":"https://api.github.com/repos/piwik/piwik/contributors","subscribers_url":"https://api.github.com/repos/piwik/piwik/subscribers","subscription_url":"https://api.github.com/repos/piwik/piwik/subscription","commits_url":"https://api.github.com/repos/piwik/piwik/commits{/sha}","git_commits_url":"https://api.github.com/repos/piwik/piwik/git/commits{/sha}","comments_url":"https://api.github.com/repos/piwik/piwik/comments{/number}","issue_comment_url":"https://api.github.com/repos/piwik/piwik/issues/comments{/number}","contents_url":"https://api.github.com/repos/piwik/piwik/contents/{+path}","compare_url":"https://api.github.com/repos/piwik/piwik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/piwik/piwik/merges","archive_url":"https://api.github.com/repos/piwik/piwik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/piwik/piwik/downloads","issues_url":"https://api.github.com/repos/piwik/piwik/issues{/number}","pulls_url":"https://api.github.com/repos/piwik/piwik/pulls{/number}","milestones_url":"https://api.github.com/repos/piwik/piwik/milestones{/number}","notifications_url":"https://api.github.com/repos/piwik/piwik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/piwik/piwik/labels{/name}","releases_url":"https://api.github.com/repos/piwik/piwik/releases{/id}","deployments_url":"https://api.github.com/repos/piwik/piwik/deployments","created_at":"2011-03-30T21:18:17Z","updated_at":"2016-03-04T07:15:58Z","pushed_at":"2016-03-03T21:53:12Z","git_url":"git://github.com/piwik/piwik.git","ssh_url":"git@github.com:piwik/piwik.git","clone_url":"https://github.com/piwik/piwik.git","svn_url":"https://github.com/piwik/piwik","homepage":"http://piwik.org/","size":154933,"stargazers_count":5186,"watchers_count":5186,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":917,"mirror_url":null,"open_issues_count":1340,"forks":917,"open_issues":1340,"watchers":5186,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/piwik/piwik/pulls/9876"},"html":{"href":"https://github.com/piwik/piwik/pull/9876"},"issue":{"href":"https://api.github.com/repos/piwik/piwik/issues/9876"},"comments":{"href":"https://api.github.com/repos/piwik/piwik/issues/9876/comments"},"review_comments":{"href":"https://api.github.com/repos/piwik/piwik/pulls/9876/comments"},"review_comment":{"href":"https://api.github.com/repos/piwik/piwik/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/piwik/piwik/pulls/9876/commits"},"statuses":{"href":"https://api.github.com/repos/piwik/piwik/statuses/2b7cec0c962075b7b838b6135e02efe5216813a0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":5,"changed_files":1}}