summaryrefslogtreecommitdiff
path: root/src/web/app/common
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-21 21:08:40 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-21 21:08:40 +0900
commit5da436a285b37af7a7bd34a5230f1e5e579f8a46 (patch)
tree0877353361f3b6b5320f4ca54bc273d63dd3964e /src/web/app/common
parent[API] Implement disconnect/twitter (diff)
downloadsharkey-5da436a285b37af7a7bd34a5230f1e5e579f8a46.tar.gz
sharkey-5da436a285b37af7a7bd34a5230f1e5e579f8a46.tar.bz2
sharkey-5da436a285b37af7a7bd34a5230f1e5e579f8a46.zip
なんかもうめっちゃ変えた
Diffstat (limited to 'src/web/app/common')
-rw-r--r--src/web/app/common/scripts/i.ls7
-rw-r--r--src/web/app/common/scripts/stream.ls4
2 files changed, 1 insertions, 10 deletions
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