File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 965965 in JavaScript."
966966 [x]
967967 (if (core/symbol? x)
968- (let [x (cond-> (:name (cljs.analyzer/resolve-var &env x))
969- (= " js" (namespace x)) name)
970- segs (string/split (core/str (string/replace x #" \ / " " ." )) #"\. " )
971- n (count segs)
972- syms (map
973- #(vary-meta (symbol " js" (string/join " ." %))
974- assoc :cljs.analyzer/no-resolve true )
975- (reverse (take n (iterate butlast segs))))
976- js (string/join " && " (repeat n " (typeof ~{} !== 'undefined')" ))]
968+ (core/ let [x (core/ cond-> (:name (cljs.analyzer/resolve-var &env x))
969+ (= " js" (namespace x)) name)
970+ segs (string/split (core/str (string/replace ( core/str x) " /" " ." )) #"\. " )
971+ n (count segs)
972+ syms (map
973+ #(vary-meta (symbol " js" (string/join " ." %))
974+ assoc :cljs.analyzer/no-resolve true )
975+ (reverse (take n (iterate butlast segs))))
976+ js (string/join " && " (repeat n " (typeof ~{} !== 'undefined')" ))]
977977 (bool-expr (concat (core/list 'js* js) syms)))
978978 `(some? ~x)))
979979
You can’t perform that action at this time.
0 commit comments