12 lines
207 B
Plaintext
12 lines
207 B
Plaintext
|
riot = require \riot
|
||
|
|
||
|
module.exports = (me) ->
|
||
|
riot.mixin \i do
|
||
|
init: ->
|
||
|
@I = me
|
||
|
@SIGNIN = me?
|
||
|
|
||
|
if @SIGNIN
|
||
|
@on \mount ~> me.on \updated @update
|
||
|
@on \unmount ~> me.off \updated @update
|