Skip to content

Commit

Permalink
Fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
gridbugs committed Feb 10, 2019
1 parent 812c6bf commit f774d52
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion guide/src/contributing/js-sys/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
[`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
[js-sys]: https://crates.io/crates/js-sys
[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-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-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
7 changes: 4 additions & 3 deletions guide/src/examples/todomvc.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
[View full source code][code] or [view the compiled example online][online]

[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/)

The code was rewritten from the [ES6 version](http://todomvc.com/examples/vanilla-es6/).

The core differences are:
- Having an [Element wrapper](/src/element.rs) 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.
- Having an [Element wrapper][element] that takes care of dyn and into refs in web-sys,
- A [Scheduler][scheduler] that allows Controller and View to communicate to each other by emulating something similar to the JS event loop.


## Size
Expand Down
2 changes: 1 addition & 1 deletion guide/src/examples/wasm2js.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ file (albeit a little bit larger and slower), and can be loaded into practically
any browser.

This example is relatively simple (cribbing from the [`console.log`
example][console_log]):
example](console-log.md)):

```rust
{{#include ../../../examples/wasm2js/src/lib.rs}}
Expand Down
2 changes: 1 addition & 1 deletion guide/src/reference/no-esm.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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
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
Expand Down

0 comments on commit f774d52

Please sign in to comment.