diff --git a/.gitignore b/.gitignore index f38ab0a37..1864319fa 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ cabal-dev /Examples/elm-js/ConsoleLog/Log.html /Examples/elm-js/Redirect/Redirect.html /Examples/elm-js/Form/Form.html -/Examples/elm-js/FrameRate/FrameRate.html \ No newline at end of file +/Examples/elm-js/FrameRate/FrameRate.html +/Examples/elm-js/Maps/Map.html \ No newline at end of file diff --git a/core-js/foreign/JavaScript.js b/core-js/foreign/JavaScript.js index 457afc764..16e8c8231 100644 --- a/core-js/foreign/JavaScript.js +++ b/core-js/foreign/JavaScript.js @@ -10,7 +10,7 @@ var Foreign = function() { function castJSNumberToInt(n) { return ~~n; } function castIntToJSNumber(n) { return n; } - var castJSElementToElement = Element.jsElement; + function castJSElementToElement(w) { return Element.jsElement(w); } function castElementToJSElement(elem) { return elem; } function castJSArrayToList(arr) { diff --git a/elm/elm-runtime-0.3.5.js b/elm/elm-runtime-0.3.5.js index 14aa697da..47669b9fa 100644 --- a/elm/elm-runtime-0.3.5.js +++ b/elm/elm-runtime-0.3.5.js @@ -15,7 +15,7 @@ var Foreign = function() { function castJSNumberToInt(n) { return ~~n; } function castIntToJSNumber(n) { return n; } - var castJSElementToElement = Element.jsElement; + function castJSElementToElement(w) { return Element.jsElement(w); } function castElementToJSElement(elem) { return elem; } function castJSArrayToList(arr) {