From 5da436a285b37af7a7bd34a5230f1e5e579f8a46 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 21 Jan 2017 21:08:40 +0900 Subject: なんかもうめっちゃ変えた MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/app/common/scripts/i.ls | 7 ------- src/web/app/common/scripts/stream.ls | 4 +--- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'src/web/app/common/scripts') diff --git a/src/web/app/common/scripts/i.ls b/src/web/app/common/scripts/i.ls index 888ef194d0..e05a7459ff 100644 --- a/src/web/app/common/scripts/i.ls +++ b/src/web/app/common/scripts/i.ls @@ -9,10 +9,3 @@ module.exports = (me) -> if @SIGNIN @on \mount ~> me.on \updated @update @on \unmount ~> me.off \updated @update - - update-i: (data) -> - if data? - Object.assign me, data - me.trigger \updated - - me: me diff --git a/src/web/app/common/scripts/stream.ls b/src/web/app/common/scripts/stream.ls index 64ae03817a..c2c061603e 100644 --- a/src/web/app/common/scripts/stream.ls +++ b/src/web/app/common/scripts/stream.ls @@ -30,9 +30,7 @@ module.exports = (me) ~> get-state = ~> state - event.on \i_updated (data) ~> - Object.assign me, data - me.trigger \updated + event.on \i_updated me.update { state-ev -- cgit v1.2.3-freya