Skip to content

Commit

Permalink
sumB
Browse files Browse the repository at this point in the history
  • Loading branch information
alandipert committed Nov 18, 2012
1 parent 27d4b78 commit b719782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cljs/alandipert/flapjax_demo/sum.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
(defn sumB
"Returns a behavior representing the sum of behaviors."
[& behaviors]
(apply fj/liftB #(apply + %&) behaviors))
(apply fj/liftB + behaviors))

(defn ^:export calculate [target-id & source-ids]
(defn calculate [target-id & source-ids]
(let [arguments (map #(extractNumberB % 0) source-ids)
results (apply sumB arguments)]
(fj/insertValueB results target-id "innerHTML")))

0 comments on commit b719782

Please sign in to comment.