Permalink
Browse files

CLJS-330: fix (hash js/undefined)

  • Loading branch information...
1 parent 56adcc5 commit 76a33355251f7bf3984083cdcf73617c5cfbc3ce @michalmarczyk michalmarczyk committed with David Nolen Jul 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/cljs/cljs/core.cljs
View
@@ -395,7 +395,8 @@
(extend-type default
IHash
- (-hash [o] (goog.getUid o)))
+ (-hash [o]
+ (if (nil? o) 0 (goog.getUid o))))
;;this is primitive because & emits call to array-seq
(defn inc

0 comments on commit 76a3335

Please sign in to comment.