on master help sign in
Merge branch 'master' into webgl
5e6a8c9John P Mayer Jr
libraries/Native/Text.js+1
@@ -153,6 +153,7 @@ Elm.Native.Text.make = function(elm) {
153 typeface : F2(typeface),
153 typeface : F2(typeface),
154 color : F2(color),
154 color : F2(color),
155 link : F2(link),
155 link : F2(link),
156+ style : F2(style),
156
157
157 leftAligned : block('left'),
158 leftAligned : block('left'),
158 rightAligned : block('right'),
159 rightAligned : block('right'),
libraries/Signal.elm+8−10
@@ -120,20 +120,18 @@ initially. -}
120dropIf : (a -> Bool) -> a -> Signal a -> Signal a
120dropIf : (a -> Bool) -> a -> Signal a -> Signal a
121dropIf = Native.Signal.dropIf
121dropIf = Native.Signal.dropIf
122
122
123−{-| Keep events only when the first signal is true. When the first signal
123+{-| Keep events only when the first signal is true. Elm does not allow undefined
124−becomes true, the most recent value of the second signal will be propagated.
125−Until the first signal becomes false again, all events will be propagated. Elm
126−does not allow undefined signals, so a base case must be provided in case the
124+signals, so a base case must be provided in case the first signal is not true
127−first signal is not true initially. -}
125+initially.
126+-}
128keepWhen : Signal Bool -> a -> Signal a -> Signal a
127keepWhen : Signal Bool -> a -> Signal a -> Signal a
129keepWhen bs def sig =
128keepWhen bs def sig =
130 snd <~ (keepIf fst (False, def) ((,) <~ (sampleOn sig bs) ~ sig))
129 snd <~ (keepIf fst (False, def) ((,) <~ (sampleOn sig bs) ~ sig))
131
130
132−{-| Drop events when the first signal is true. When the first signal becomes
131+{-| Drop events when the first signal is true. Elm does not allow undefined
133−false, the most recent value of the second signal will be propagated. Until the
134−first signal becomes true again, all events will be propagated. Elm does not
135−allow undefined signals, s oa base case must be provided in case the first
132+signals, so a base case must be provided in case the first signal is true
136−signal is true initially. -}
133+initially.
134+-}
137dropWhen : Signal Bool -> a -> Signal a -> Signal a
135dropWhen : Signal Bool -> a -> Signal a -> Signal a
138dropWhen bs = keepWhen (not <~ bs)
136dropWhen bs = keepWhen (not <~ bs)
139
137
libraries/String.elm+1−1
@@ -114,7 +114,7 @@ foldr = Native.String.foldr
114{-| Split a string using a given separator.
114{-| Split a string using a given separator.
115
115
116 split "," "cat,dog,cow" == ["cat","dog","cow"]
116 split "," "cat,dog,cow" == ["cat","dog","cow"]
117− split "/" "home/evan/Desktop/" == ["home","evan","Desktop"]
117+ split "/" "home/evan/Desktop/" == ["home","evan","Desktop", ""]
118
118
119Use `Regex.split` if you need something more flexible.
119Use `Regex.split` if you need something more flexible.
120-}
120-}