mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-06-28 07:46:58 +00:00
13 lines
No EOL
216 B
Text
13 lines
No EOL
216 B
Text
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
|
|
|
|
me: me |