on master help sign in
Correct error with `sampleOn` function.
commit1430e8f46721273834673ffa471bb89a34dcefd1 authorevancz <info@elm-lang.org> dateFri 29 Jun 2012, 11:29 (14 years ago) parent913aaf0
3 files changed+5−3
core-js/Prelude.js+2−1 core-js/runtime/Dispatcher.js+1−1 core-js/runtime/Signal.js+2−1
core-js/Prelude.js+2−1
@@ -87,6 +87,7 @@ var Prelude = function() {
8787 dropIf : Signal.dropIf,
8888 keepWhen : Signal.keepWhen,
8989 dropWhen : Signal.dropWhen,
90− dropRepeats : Signal.dropRepeats
90+ dropRepeats : Signal.dropRepeats,
91+ sampleOn : Signal.sampleOn
9192 };
9293}();
core-js/runtime/Dispatcher.js+1−1
@@ -115,7 +115,7 @@ var Elm = function() {
115115 keepWhen : function(s) { return dropWhen(new lift(function(b){return !b;},[s])); },
116116 dropWhen : dropWhen,
117117 dropRepeats : function(s) { return new dropRepeats(s);},
118− sampleOn : sampleOn
118+ sampleOn : function(s1) { return function(s2) { return new sampleOn(s1,s2); }; }
119119 };
120120}();
121121
core-js/runtime/Signal.js+2−1
@@ -311,6 +311,7 @@ var Signal = function() {
311311 dropIf : Elm.dropIf,
312312 keepWhen : Elm.keepWhen,
313313 dropWhen : Elm.dropWhen,
314− dropRepeats : Elm.dropRepeats
314+ dropRepeats : Elm.dropRepeats,
315+ sampleOn : Elm.sampleOn
315316 };
316317}();