on master help sign in
Fix the Open Street Map example.
commiteeb5df4a3ad480150d453f78d223a170200eaebf authorevancz <info@elm-lang.org> dateThu 3 Jan 2013, 00:30 (14 years ago) parent0205998
2 files changed+2−3
Examples/elm-js/Maps/Map.elm+1−2 elm/elm-runtime-0.7.js+1−1
Examples/elm-js/Maps/Map.elm+1−2
@@ -1,7 +1,6 @@
11
22module Map where
33
4−import Window as Win
54import JavaScript.Experimental
65
76foreign import jsevent "provideMap"
@@ -12,4 +11,4 @@ foreign import jsevent "provideMap"
1211center (w,h) elem = container w h middle elem
1312maps = lift (castJSElementToElement 640 360) jsMaps
1413
15−main = lift2 center Win.dimensions maps
14+main = lift2 center Window.dimensions maps
elm/elm-runtime-0.7.js+1−1
@@ -21,7 +21,7 @@ Elm.JavaScript = function() {
2121 return function(node) {
2222 return ["Element",Guid.guid(),
2323 ["EExternalHtml",node],
24− w,h,1,Nothing,Nothing];
24+ w,h,1,["Nothing"],["Nothing"]];
2525 }
2626 }
2727 }