misskey/src/web/app/common/scripts/i.ls

12 lines
207 B
Plaintext
Raw Normal View History

2016-12-29 07:49:51 +09:00
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