@@ -55,7 +55,8 @@ tryBlock escapees names e =
5555
5656jsModule (escapees, Module names exports imports stmts) =
5757 tryBlock escapees (tail modNames) $ concat
58− [ concatMap (\n -> globalAssign n $ n ++ " || {}") .
58+ [ "\nfor(var i in Elm) { this[i] = Elm[i]; }"
59+ , concatMap (\n -> globalAssign n $ n ++ " || {}") .
5960 map (intercalate ".") . drop 2 . inits $
6061 take (length modNames - 1) modNames
6162 , "\nif (" ++ modName ++ ") throw \"Module name collision, '" ++