なんかもうめっちゃ変えた
This commit is contained in:
parent
cd6b681748
commit
5da436a285
10 changed files with 31 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue