rudeshark.net/src/web/app/desktop/scripts/open-window.ls
2016-12-29 07:49:51 +09:00

9 lines
186 B
Plaintext

riot = require \riot
function open(name, opts)
window = document.body.append-child document.create-element name
riot.mount window, opts
riot.mixin \open-window do
open-window: open