From d4180f5d3b8079924e62817aa74c401478ad7932 Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 1 Nov 2018 17:53:46 +1100 Subject: fix event handles in lib.dom --- lib/dom.client.moon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/dom.client.moon b/lib/dom.client.moon index a5a319b..acdbfa4 100644 --- a/lib/dom.client.moon +++ b/lib/dom.client.moon @@ -24,9 +24,9 @@ element = (element) -> (...) -> for child in *children if 'string' == type child - e.innerHTML ..= child - else - e\appendChild child + child = document\createTextNode child + + e\appendChild child setmetatable {}, __index: (name) => with val = element name -- cgit v1.2.3