mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-30 05:01:33 +00:00
Fix broken links
This commit is contained in:
@ -34,13 +34,14 @@ pub fn timed(callback: &js_sys::Function) -> f64 {
|
|||||||
|
|
||||||
The `js-sys` crate doesn't contain bindings to any Web APIs like
|
The `js-sys` crate doesn't contain bindings to any Web APIs like
|
||||||
[`document.querySelectorAll`][mdn-qsa]. These will be part of the
|
[`document.querySelectorAll`][mdn-qsa]. These will be part of the
|
||||||
[`web-sys`](./web-sys.html) crate.
|
[`web-sys`][web-sys] crate.
|
||||||
|
|
||||||
[MDN]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
|
[MDN]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
|
||||||
[js-sys]: https://crates.io/crates/js-sys
|
[js-sys]: https://crates.io/crates/js-sys
|
||||||
[issue]: https://github.com/rustwasm/wasm-bindgen/issues/275
|
[issue]: https://github.com/rustwasm/wasm-bindgen/issues/275
|
||||||
[mdn-function]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function
|
[mdn-function]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function
|
||||||
[mdn-qsa]: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll
|
[mdn-qsa]: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll
|
||||||
|
[web-sys]: https://crates.io/crates/web-sys
|
||||||
[web-sys-contributing]: https://rustwasm.github.io/wasm-bindgen/web-sys.html
|
[web-sys-contributing]: https://rustwasm.github.io/wasm-bindgen/web-sys.html
|
||||||
[web-sys-issues]: https://github.com/rustwasm/wasm-bindgen/issues?q=is%3Aissue+is%3Aopen+label%3Aweb-sys
|
[web-sys-issues]: https://github.com/rustwasm/wasm-bindgen/issues?q=is%3Aissue+is%3Aopen+label%3Aweb-sys
|
||||||
[mdn-date-now]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now
|
[mdn-date-now]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now
|
||||||
|
@ -3,15 +3,16 @@
|
|||||||
[View full source code][code] or [view the compiled example online][online]
|
[View full source code][code] or [view the compiled example online][online]
|
||||||
|
|
||||||
[online]: https://rustwasm.github.io/wasm-bindgen/exbuild/todomvc/
|
[online]: https://rustwasm.github.io/wasm-bindgen/exbuild/todomvc/
|
||||||
[code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/todomvc
|
[element]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/todomvc/src/element.rs
|
||||||
|
[scheduler]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/todomvc/src/scheduler.rs
|
||||||
|
|
||||||
[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) and [web-sys](https://rustwasm.github.io/wasm-bindgen/api/web_sys/) coded [TODO MVC](http://todomvc.com/)
|
[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) and [web-sys](https://rustwasm.github.io/wasm-bindgen/api/web_sys/) coded [TODO MVC](http://todomvc.com/)
|
||||||
|
|
||||||
The code was rewritten from the [ES6 version](http://todomvc.com/examples/vanilla-es6/).
|
The code was rewritten from the [ES6 version](http://todomvc.com/examples/vanilla-es6/).
|
||||||
|
|
||||||
The core differences are:
|
The core differences are:
|
||||||
- Having an [Element wrapper](/src/element.rs) that takes care of dyn and into refs in web-sys,
|
- Having an [Element wrapper][element] that takes care of dyn and into refs in web-sys,
|
||||||
- A [Scheduler](/src/scheduler.rs) that allows Controller and View to communicate to each other by emulating something similar to the JS event loop.
|
- A [Scheduler][scheduler] that allows Controller and View to communicate to each other by emulating something similar to the JS event loop.
|
||||||
|
|
||||||
|
|
||||||
## Size
|
## Size
|
||||||
|
@ -14,7 +14,7 @@ file (albeit a little bit larger and slower), and can be loaded into practically
|
|||||||
any browser.
|
any browser.
|
||||||
|
|
||||||
This example is relatively simple (cribbing from the [`console.log`
|
This example is relatively simple (cribbing from the [`console.log`
|
||||||
example][console_log]):
|
example](console-log.md)):
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
{{#include ../../../examples/wasm2js/src/lib.rs}}
|
{{#include ../../../examples/wasm2js/src/lib.rs}}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# No ES Modules
|
# No ES Modules
|
||||||
|
|
||||||
Explained a bit more in the [internal design](design.html) section one of the
|
Explained a bit more in the [internal design](../contributing/design/index.md) section one of the
|
||||||
key foundational principles of `wasm-bindgen` is ES modules. It supports working
|
key foundational principles of `wasm-bindgen` is ES modules. It supports working
|
||||||
without ES modules, however! Not all JS tooling and browsers are ready for ES
|
without ES modules, however! Not all JS tooling and browsers are ready for ES
|
||||||
modules by default, so it can sometimes be helpful to quickly get up and running
|
modules by default, so it can sometimes be helpful to quickly get up and running
|
||||||
|
Reference in New Issue
Block a user