Skip to content

Commit

Permalink
Remove Bulk from counter examples (#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwolphin authored May 4, 2020
1 parent e4a609f commit 1025000
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions examples/counter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pub struct Model {
pub enum Msg {
Increment,
Decrement,
Bulk(Vec<Msg>),
}

impl Component for Model {
Expand All @@ -38,12 +37,6 @@ impl Component for Model {
self.value -= 1;
self.console.log("minus one");
}
Msg::Bulk(list) => {
for msg in list {
self.update(msg);
self.console.log("Bulk action");
}
}
}
true
}
Expand Down
7 changes: 0 additions & 7 deletions yew-stdweb/examples/counter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pub struct Model {
pub enum Msg {
Increment,
Decrement,
Bulk(Vec<Msg>),
}

impl Component for Model {
Expand All @@ -38,12 +37,6 @@ impl Component for Model {
self.value -= 1;
self.console.log("minus one");
}
Msg::Bulk(list) => {
for msg in list {
self.update(msg);
self.console.log("Bulk action");
}
}
}
true
}
Expand Down

0 comments on commit 1025000

Please sign in to comment.