Skip to content

Instantly share code, notes, and snippets.

@ninjudd
Created March 31, 2014 23:17
Show Gist options
  • Save ninjudd/9904526 to your computer and use it in GitHub Desktop.
Save ninjudd/9904526 to your computer and use it in GitHub Desktop.
diff --git a/src/cljs/cljs/core.cljs b/src/cljs/cljs/core.cljs
index 9124abc..1deb8b2 100644
--- a/src/cljs/cljs/core.cljs
+++ b/src/cljs/cljs/core.cljs
@@ -556,7 +556,10 @@
IEquiv
(-equiv [o other]
(and (instance? js/Date other)
- (identical? (.toString o) (.toString other)))))
+ (identical? (.toString o) (.toString other))))
+ IHash
+ (-hash [o]
+ (.getTime o)))
(extend-type number
IEquiv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment