From 5e8b8139636b808b475323a1f0a70dce4ca9ef72 Mon Sep 17 00:00:00 2001 From: Dan Holmsand Date: Thu, 30 Jul 2015 19:19:07 +0200 Subject: [PATCH] Fix -swap! in ratom.cljs --- src/reagent/ratom.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/reagent/ratom.cljs b/src/reagent/ratom.cljs index 02ebea1..7b2308d 100644 --- a/src/reagent/ratom.cljs +++ b/src/reagent/ratom.cljs @@ -64,7 +64,7 @@ (-reset! a (f state x))) (-swap! [a f x y] (-reset! a (f state x y))) - (-swap! [a f x y & more] + (-swap! [a f x y more] (-reset! a (apply f state x y more))) IMeta @@ -143,7 +143,7 @@ (-swap! (._reaction a) f x)) (-swap! [a f x y] (-swap! (._reaction a) f x y)) - (-swap! [a f x y & more] + (-swap! [a f x y more] (-swap! (._reaction a) f x y more)) IPrintWithWriter @@ -236,7 +236,7 @@ (-reset! a (f (-peek-at a) x))) (-swap! [a f x y] (-reset! a (f (-peek-at a) x y))) - (-swap! [a f x y & more] + (-swap! [a f x y more] (-reset! a (apply f (-peek-at a) x y more))) IComputedImpl @@ -362,7 +362,7 @@ (-reset! a (f state x))) (-swap! [a f x y] (-reset! a (f state x y))) - (-swap! [a f x y & more] + (-swap! [a f x y more] (-reset! a (apply f state x y more))) IEquiv