diff options
| -rw-r--r-- | app/realities.moon | 5 |
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 |
