From 46938bab50f2f18331f69899c4feefc7878386b7 Mon Sep 17 00:00:00 2001 From: Brandon Bloom Date: Tue, 5 Jun 2012 19:25:45 -0700 Subject: [PATCH] Fix (= (js/Date.) nil) --- src/cljs/cljs/core.cljs | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/cljs/cljs/core.cljs b/src/cljs/cljs/core.cljs index 2f13165..e77bb91 100644 --- a/src/cljs/cljs/core.cljs +++ b/src/cljs/cljs/core.cljs @@ -373,7 +373,9 @@ (extend-type js/Date IEquiv - (-equiv [o other] (identical? (. o (toString)) (. other (toString))))) + (-equiv [o other] + (and (instance? js/Date other) + (identical? (.toString o) (.toString other))))) (extend-type number IEquiv -- 1.7.9.1