From b626227a9e6297ab45ec55aef96c7377b5ae5707 Mon Sep 17 00:00:00 2001 From: Nathan Marz Date: Wed, 1 Jul 2015 10:33:29 -0400 Subject: [PATCH] remove extra overhead in cljs protocol method invocations --- src/com/rpl/specter/impl.cljc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/rpl/specter/impl.cljc b/src/com/rpl/specter/impl.cljc index 68da54d..3905b99 100644 --- a/src/com/rpl/specter/impl.cljc +++ b/src/com/rpl/specter/impl.cljc @@ -124,17 +124,17 @@ #?(:cljs (do (defn structure-path-impl [_] - {:select* (fn [this structure next-fn] (select* this structure next-fn)) - :transform* (fn [this structure next-fn] (transform* this structure next-fn)) + {:select* select* + :transform* transform* }) (defn collector-impl [_] - {:collect-val (fn [this structure] (collect-val this structure)) + {:collect-val collect-val }) (defn structure-vals-path-impl [_] - {:select-full* (fn [this structure next-fn] (select-full* this structure next-fn)) - :transform-full* (fn [this structure next-fn] (transform-full* this structure next-fn)) + {:select-full* select-full* + :transform-full* transform-full* }) ))