aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-10-18 09:02:38 +0000
committers-ol <s-ol@users.noreply.github.com>2018-10-18 09:02:38 +0000
commitc9d2a218fb24c7fe358e8195c0435848b6cb44d7 (patch)
treed35ae9449a21e0ac48b9a1826676eff14b886ce2
parentself-re-vitalizing realities (diff)
downloadmmm-c9d2a218fb24c7fe358e8195c0435848b6cb44d7.tar.gz
mmm-c9d2a218fb24c7fe358e8195c0435848b6cb44d7.zip
straight globals
-rw-r--r--app/realities.moon5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/realities.moon b/app/realities.moon
index 7823303..78db6e6 100644
--- a/app/realities.moon
+++ b/app/realities.moon
@@ -42,7 +42,7 @@ else
\append "<script type=\"application/lua\">
local rplc = js.global.document:getElementById('#{@id}');
local fn = #{compile @func}
- diag = js.global.Diagram(fn)
+ diag = Diagram(fn)
rplc.parentNode:replaceChild(diag.node, rplc)
</script>"
rplc\render!
@@ -134,9 +134,6 @@ on_client ->
@svg\viewbox 0, -h, w, h
@node = @svg.node
- if MODE == 'HYBRID'
- js.global.Diagram = Diagram
-
addlabel = (label, diagram) ->
with div style: { display: 'inline-block', margin: '20px', 'text-align': 'center' }
\append diagram