From 1025000febad7f97ea93b6978c7c920f41db2c9b Mon Sep 17 00:00:00 2001 From: Nikita <45789684+qwolphin@users.noreply.github.com> Date: Mon, 4 May 2020 02:13:35 +0000 Subject: [PATCH] Remove Bulk from counter examples (#1184) --- examples/counter/src/lib.rs | 7 ------- yew-stdweb/examples/counter/src/lib.rs | 7 ------- 2 files changed, 14 deletions(-) diff --git a/examples/counter/src/lib.rs b/examples/counter/src/lib.rs index 150f8cc95f0..f70e67a8758 100644 --- a/examples/counter/src/lib.rs +++ b/examples/counter/src/lib.rs @@ -13,7 +13,6 @@ pub struct Model { pub enum Msg { Increment, Decrement, - Bulk(Vec), } impl Component for Model { @@ -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 } diff --git a/yew-stdweb/examples/counter/src/lib.rs b/yew-stdweb/examples/counter/src/lib.rs index 9cf1feba66a..58f66c94de1 100644 --- a/yew-stdweb/examples/counter/src/lib.rs +++ b/yew-stdweb/examples/counter/src/lib.rs @@ -13,7 +13,6 @@ pub struct Model { pub enum Msg { Increment, Decrement, - Bulk(Vec), } impl Component for Model { @@ -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 }