From f49f371eea06fb9a5d1f8f3165cde52bc00316c1 Mon Sep 17 00:00:00 2001 From: Nathan Marz Date: Sat, 28 May 2016 21:06:43 -0400 Subject: [PATCH] eliminate undeclared var warning from cljs inline caching code --- src/clj/com/rpl/specter/macros.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/clj/com/rpl/specter/macros.clj b/src/clj/com/rpl/specter/macros.clj index b466eb1..f335fa0 100644 --- a/src/clj/com/rpl/specter/macros.clj +++ b/src/clj/com/rpl/specter/macros.clj @@ -446,11 +446,14 @@ ;; a bunch of checks beforehand cache-id (i/gen-uuid-str) ;; used for clj cache-sym (gensym "pathcache") ;; used for cljs + + ;; this is used to avoid warnings in cljs code about undeclared var + cache-qualified-sym (symbol (str *ns* "." cache-sym)) info-sym (gensym "info") get-cache-code (if (= platform :clj) `(i/get-path-cache ~cache-id) - cache-sym + cache-qualified-sym ) add-cache-code (if (= platform :clj) `(i/add-path-cache! ~cache-id ~info-sym)