wasm-bindgen/examples/fetch
Alex Crichton 36b854b69c web-sys: Add support for Global-scope methods
This commit adds further support for the `Global` attribute to not only emit
structural accessors but also emit functions that don't take `&self`. All
methods on a `[Global]` interface will not require `&self` and will call
functions and/or access properties on the global scope.

This should enable things like:

    Window::location() // returns `Location`
    Window::fetch(...) // invokes the `fetch` function

Closes #659
2018-08-28 17:20:31 -07:00
..
src web-sys: Add support for Global-scope methods 2018-08-28 17:20:31 -07:00
.gitignore Initial example for the Fetch API 2018-08-19 18:41:02 -04:00
build.bat Initial example for the Fetch API 2018-08-19 18:41:02 -04:00
build.sh Initial example for the Fetch API 2018-08-19 18:41:02 -04:00
Cargo.toml Initial example for the Fetch API 2018-08-19 18:41:02 -04:00
index.html Initial example for the Fetch API 2018-08-19 18:41:02 -04:00
index.js Initial example for the Fetch API 2018-08-19 18:41:02 -04:00
package.json Initial example for the Fetch API 2018-08-19 18:41:02 -04:00
webpack.config.js Initial example for the Fetch API 2018-08-19 18:41:02 -04:00