Skip to content

Commit

Permalink
Update indexing getter usage
Browse files Browse the repository at this point in the history
  • Loading branch information
j-devel committed Sep 30, 2019
1 parent 624a14c commit 50fbb5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/todomvc/src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ impl Element {
if let Some(el) = self.el.take() {
{
if let Some(el) = wasm_bindgen::JsCast::dyn_ref::<web_sys::HtmlElement>(&el) {
text = el.dataset().get(key);
if let Some(value) = el.dataset().get(key) {
text = value;
}
}
}
self.el = Some(el);
Expand Down

0 comments on commit 50fbb5c

Please sign in to comment.