Skip to content

Instantly share code, notes, and snippets.

@rads
Created April 2, 2012 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rads/2282085 to your computer and use it in GitHub Desktop.
Save rads/2282085 to your computer and use it in GitHub Desktop.
diff --git src/cljs/cljs/core.cljs src/cljs/cljs/core.cljs
index 4f7bd94..6c011da 100644
--- src/cljs/cljs/core.cljs
+++ src/cljs/cljs/core.cljs
@@ -3439,9 +3439,9 @@ reduces them without incurring seq initialization"
(seq? x) (doall (map thisfn x))
(coll? x) (into (empty x) (map thisfn x))
(goog.isArray x) (vec (map thisfn x))
- (goog.isObject x) (into {} (for [k (js-keys x)]
- [(keyfn k)
- (thisfn (aget x k))]))
+ (= (type x) js/Object) (into {} (for [k (js-keys x)]
+ [(keyfn k)
+ (thisfn (aget x k))]))
:else x))]
(f x)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment