Skip to content

Commit

Permalink
IPrintWithWriter using ckirkendall's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
nchurch committed Dec 14, 2014
1 parent f7accce commit 89e22a6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/cljs/domina/events.cljs
Expand Up @@ -45,13 +45,7 @@
(map #(vector % (gobj/get evt %)) (prim-seq (gobj/getKeys evt) 0)))
IPrintWithWriter
(-pr-writer [o writer opts]
(let [pr-pair (fn [keyval] (pr-sequential-writer writer pr-writer "" " " "" opts keyval))]
(pr-sequential-writer writer pr-pair "{" ", " "}" opts
(reify
ISeqable
(-seq [o]
(map #(vector % (gobj/get evt %)) (prim-seq (gobj/getKeys evt) 0))))
)))))
(-write writer "domina.event" (into {} (seq o))))))
true))

(defn- listen-internal!
Expand Down

0 comments on commit 89e22a6

Please sign in to comment.