Skip to content

Commit

Permalink
Fix error with castJSElementToElement.
Browse files Browse the repository at this point in the history
  • Loading branch information
process-bot committed Jun 28, 2012
1 parent 29a508d commit 9e1d2c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
/Examples/elm-js/FrameRate/FrameRate.html
/Examples/elm-js/Maps/Map.html
2 changes: 1 addition & 1 deletion core-js/foreign/JavaScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion elm/elm-runtime-0.3.5.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9e1d2c8

Please sign in to comment.