Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add switch!

  • Loading branch information...
commit 727b0a1150fb62b26364fc6154dfdd434b8468db 1 parent e2940be
@cmeiklejohn authored
Showing with 4 additions and 1 deletion.
  1. +1 −1  README.md
  2. +3 −0  src/cljs/shafty/core.cljs
View
2  README.md
@@ -36,7 +36,7 @@ F.Event | shafty.core.Event | F.Behavior | shafty.core.Behaviour
sendEvent | send! | startsWith | hold!
mergeE | merge! | valueNow | deref (cljs)
constantE | constant! | changes | changes!
-bindE | bind! | switchB |
+bindE | bind! | switchB | switch!
mapE | map! | timerB | held-timer!
notE | not! | delayB | delay!
filterE | filter! | sendBehavior | send!
View
3  src/cljs/shafty/core.cljs
@@ -304,6 +304,9 @@
(blind! [this interval init]
(hold! (blind! (changes! this) interval) init))
+ (switch! [this inital]
+ (hold! (switch! (changes! this)) init))
+
IEventConversion
(changes! [this] (.-stream this))
Please sign in to comment.
Something went wrong with that request. Please try again.