{"action":"created","issue":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/659","repository_url":"https://api.github.com/repos/rustwasm/wasm-bindgen","labels_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/659/comments","events_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/659/events","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/659","id":348022525,"node_id":"MDU6SXNzdWUzNDgwMjI1MjU=","number":659,"title":"Expose a getter for the global window","user":{"login":"fitzgen","id":74571,"node_id":"MDQ6VXNlcjc0NTcx","avatar_url":"https://avatars2.githubusercontent.com/u/74571?v=4","gravatar_id":"","url":"https://api.github.com/users/fitzgen","html_url":"https://github.com/fitzgen","followers_url":"https://api.github.com/users/fitzgen/followers","following_url":"https://api.github.com/users/fitzgen/following{/other_user}","gists_url":"https://api.github.com/users/fitzgen/gists{/gist_id}","starred_url":"https://api.github.com/users/fitzgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitzgen/subscriptions","organizations_url":"https://api.github.com/users/fitzgen/orgs","repos_url":"https://api.github.com/users/fitzgen/repos","events_url":"https://api.github.com/users/fitzgen/events{/privacy}","received_events_url":"https://api.github.com/users/fitzgen/received_events","type":"User","site_admin":false},"labels":[{"id":990898954,"node_id":"MDU6TGFiZWw5OTA4OTg5NTQ=","url":"https://api.github.com/repos/rustwasm/wasm-bindgen/labels/Blocking%20Rust%202018","name":"Blocking Rust 2018","color":"FF0000","default":false},{"id":1012903713,"node_id":"MDU6TGFiZWwxMDEyOTAzNzEz","url":"https://api.github.com/repos/rustwasm/wasm-bindgen/labels/Rust%202018%20Release%20Candidate","name":"Rust 2018 Release Candidate","color":"d3005f","default":false},{"id":989797464,"node_id":"MDU6TGFiZWw5ODk3OTc0NjQ=","url":"https://api.github.com/repos/rustwasm/wasm-bindgen/labels/web-sys","name":"web-sys","color":"a0f48b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-06T17:52:54Z","updated_at":"2018-08-17T15:12:29Z","closed_at":null,"author_association":"MEMBER","body":"I think we could do something like\r\n\r\n```rust\r\n#[wasm_bindgen]\r\nextern {\r\n    #[wasm_bindgen(getter)]\r\n    pub fn window() -> Window;\r\n}\r\n```\r\n\r\ninside `crates/web-sys/src/lib.rs` and consider that the entry point to all globally exposed properties and methods."},"comment":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/comments/413897240","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/659#issuecomment-413897240","issue_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/659","id":413897240,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzg5NzI0MA==","user":{"login":"derekdreery","id":1392222,"node_id":"MDQ6VXNlcjEzOTIyMjI=","avatar_url":"https://avatars0.githubusercontent.com/u/1392222?v=4","gravatar_id":"","url":"https://api.github.com/users/derekdreery","html_url":"https://github.com/derekdreery","followers_url":"https://api.github.com/users/derekdreery/followers","following_url":"https://api.github.com/users/derekdreery/following{/other_user}","gists_url":"https://api.github.com/users/derekdreery/gists{/gist_id}","starred_url":"https://api.github.com/users/derekdreery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekdreery/subscriptions","organizations_url":"https://api.github.com/users/derekdreery/orgs","repos_url":"https://api.github.com/users/derekdreery/repos","events_url":"https://api.github.com/users/derekdreery/events{/privacy}","received_events_url":"https://api.github.com/users/derekdreery/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T15:12:29Z","updated_at":"2018-08-17T15:12:29Z","author_association":"CONTRIBUTOR","body":"Out of curiosity, why is using a `static` sketchy?"}}
{"actor":{"display_login":"derekdreery"}}