Permalink
Browse files

Updating render-type to deal with blocking refs

  • Loading branch information...
1 parent 330fe9b commit 49652a4931475af5de5a8553020cce80dfc599f9 @abedra abedra committed May 10, 2011
Showing with 4 additions and 3 deletions.
  1. +2 −1 project.clj
  2. +2 −2 src/mycroft/data.clj
View
@@ -6,4 +6,5 @@
[ring/ring-jetty-adapter "0.3.8"]
[compojure "0.6.3" :exclusions [org.clojure/clojure]]
[hiccup "0.3.5" :exclusions [org.clojure/clojure]]]
- :dev-dependencies [[swank-clojure "1.3.0-SNAPSHOT" :exclusions [org.clojure/clojure]]])
+ :dev-dependencies [[swank-clojure "1.3.0-SNAPSHOT" :exclusions [org.clojure/clojure]]]
+ :repositories {"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"})
View
@@ -46,8 +46,8 @@
(render-collection this options))
(defmethod render-type clojure.lang.IPersistentCollection [this options]
(render-collection this options))
-(defmethod render-type clojure.lang.IRef [this options]
- (render-type @this (add-selector options :mycroft/deref)))
+(defmethod render-type clojure.lang.IDeref [this options]
+ (render-type (deref this 0 :pending) (add-selector options :mycroft/deref)))
(defmethod render-type clojure.lang.Var [this options]
(if (fn? (safe-deref this))
(docs/render this options)

0 comments on commit 49652a4

Please sign in to comment.