{"action":"reopened","issue":{"url":"https://api.github.com/repos/nathanhammond/libphonenumber/issues/4","labels_url":"https://api.github.com/repos/nathanhammond/libphonenumber/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/nathanhammond/libphonenumber/issues/4/comments","events_url":"https://api.github.com/repos/nathanhammond/libphonenumber/issues/4/events","html_url":"https://github.com/nathanhammond/libphonenumber/issues/4","id":83624095,"number":4,"title":"Change `this` to `window`","user":{"login":"ptarjan","id":40143,"avatar_url":"https://avatars.githubusercontent.com/u/40143?v=3","gravatar_id":"","url":"https://api.github.com/users/ptarjan","html_url":"https://github.com/ptarjan","followers_url":"https://api.github.com/users/ptarjan/followers","following_url":"https://api.github.com/users/ptarjan/following{/other_user}","gists_url":"https://api.github.com/users/ptarjan/gists{/gist_id}","starred_url":"https://api.github.com/users/ptarjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptarjan/subscriptions","organizations_url":"https://api.github.com/users/ptarjan/orgs","repos_url":"https://api.github.com/users/ptarjan/repos","events_url":"https://api.github.com/users/ptarjan/events{/privacy}","received_events_url":"https://api.github.com/users/ptarjan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-01T17:59:37Z","updated_at":"2015-06-04T01:40:04Z","closed_at":null,"body":"In https://github.com/nathanhammond/libphonenumber/blob/master/dist/libphonenumber.js#L1 the very first line is `var aa = this`. When using your library with `browserify`, your library will be in a closure whose context is not the window, but instead `undefined`.\r\n\r\nCan you just change it to `var aa = window`? I'm sure this could be fixed in closure too, but I don't know that code well enough to open the issue."}}