From 7a32acd6d03a517327a3dfa336f214044bdd6cb9 Mon Sep 17 00:00:00 2001 From: Pauan Date: Mon, 11 Jun 2018 21:06:51 -1000 Subject: [PATCH] Adding in HIGHEST_ZINDEX --- examples/todomvc/src/main.rs | 4 ++-- src/dom.rs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/todomvc/src/main.rs b/examples/todomvc/src/main.rs index aac6d96..2a5f0c5 100644 --- a/examples/todomvc/src/main.rs +++ b/examples/todomvc/src/main.rs @@ -202,7 +202,7 @@ fn main() { if event.key() == "Enter" { event.prevent_default(); - let trimmed = state.new_todo_title.with_ref(|x| trim(&x)); + let trimmed = trim(&state.new_todo_title.lock_ref()); if let Some(title) = trimmed { state.new_todo_title.set("".to_owned()); @@ -287,7 +287,7 @@ fn main() { Filter::All => true, } ) - .map_dedupe(|show| !*show)); + .dedupe_map(|show| !*show)); children(&mut [ html!("div", { diff --git a/src/dom.rs b/src/dom.rs index ab73c0e..179898e 100644 --- a/src/dom.rs +++ b/src/dom.rs @@ -34,6 +34,9 @@ pub struct SvgElement(Reference); pub const HTML_NAMESPACE: &str = "http://www.w3.org/1999/xhtml"; pub const SVG_NAMESPACE: &str = "http://www.w3.org/2000/svg"; +// 32-bit signed int +pub const HIGHEST_ZINDEX: &str = "2147483647"; + // TODO this should be in stdweb // TODO this should return HtmlBodyElement