mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-01 18:01:06 +00:00
Merge pull request #1238 from jonathanKingston/fixup_todomvc_warnings
Fixup compiler warnings for Todo MVC example
This commit is contained in:
commit
92ed368c0a
@ -1,4 +1,7 @@
|
|||||||
// For more comments about what's going on here, check out the `hello_world`
|
// For more comments about what's going on here, check out the `hello_world`
|
||||||
// example
|
// example
|
||||||
import('./pkg/todomvc')
|
const rust = import('./pkg/todomvc');
|
||||||
|
|
||||||
|
rust
|
||||||
|
.then(m => m.run())
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
|
@ -68,7 +68,7 @@ impl Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_page(&mut self, raw: String) {
|
pub fn set_page(&mut self, raw: String) {
|
||||||
let route = raw.trim_left_matches("#/");
|
let route = raw.trim_start_matches("#/");
|
||||||
self.active_route = route.to_string();
|
self.active_route = route.to_string();
|
||||||
self._filter(false);
|
self._filter(false);
|
||||||
self.add_message(ViewMessage::UpdateFilterButtons(route.to_string()));
|
self.add_message(ViewMessage::UpdateFilterButtons(route.to_string()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user