Adding in HIGHEST_ZINDEX

This commit is contained in:
Pauan 2018-06-11 21:06:51 -10:00
parent b8e18b3d25
commit 7a32acd6d0
2 changed files with 5 additions and 2 deletions

View File

@ -202,7 +202,7 @@ fn main() {
if event.key() == "Enter" { if event.key() == "Enter" {
event.prevent_default(); 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 { if let Some(title) = trimmed {
state.new_todo_title.set("".to_owned()); state.new_todo_title.set("".to_owned());
@ -287,7 +287,7 @@ fn main() {
Filter::All => true, Filter::All => true,
} }
) )
.map_dedupe(|show| !*show)); .dedupe_map(|show| !*show));
children(&mut [ children(&mut [
html!("div", { html!("div", {

View File

@ -34,6 +34,9 @@ pub struct SvgElement(Reference);
pub const HTML_NAMESPACE: &str = "http://www.w3.org/1999/xhtml"; pub const HTML_NAMESPACE: &str = "http://www.w3.org/1999/xhtml";
pub const SVG_NAMESPACE: &str = "http://www.w3.org/2000/svg"; 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 be in stdweb
// TODO this should return HtmlBodyElement // TODO this should return HtmlBodyElement