Fix runtime error with Random.float.
Rename JS function to avoid conflicting with reserved words, as enforced by
commit 40ea6df24 (found with git bisect).
commit0f182c653d627fa6193fdc96de719ac8cb9d2809
authorMax Goldstein <maxgoldstein1@gmail.com>
dateSun 29 Sep 2013, 10:32 (13 years ago)
parentde232b6
libraries/Native/Signal/Random.js+1−1
@@ -17,7 +17,7 @@ Elm.Native.Random = function(elm) {
1717 }
1818
1919 elm.Native.Random = { range: F3(range) };
20− elm.Native.Random['float'] = flt;
20+ elm.Native.Random['flt'] = flt;
2121 return elm.Native.Random;
2222
2323};
libraries/Random.elm+1−1
@@ -20,4 +20,4 @@ range = Native.Random.range
2020The new values are random numbers in [0..1).
2121-}
2222float : Signal a -> Signal Float
23−float = Native.Random.float
23+float = Native.Random.flt