Skip to content

Commit

Permalink
Define Elm outside the overall closure
Browse files Browse the repository at this point in the history
  • Loading branch information
process-bot committed Feb 20, 2016
1 parent 89a7bec commit fa6a7d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Pipeline/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ html generatedJavaScript moduleName =
footer :: [TMP.CanonicalModule] -> Text.Text
footer rootModules =
Text.pack $ unlines $
"var Elm = Elm || { __modules__: {} };"
"Elm = Elm || { __modules__: {} };"
: map export rootModules
++ ["}());"]

Expand All @@ -176,7 +176,8 @@ export versionedName =


header :: Text.Text
header = [r|(function() {
header = [r|var Elm;
(function() {
'use strict';

function F2(fun)
Expand Down

0 comments on commit fa6a7d3

Please sign in to comment.