Skip to content

Commit

Permalink
duplicate listener as cancelCallback to (.on)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantisan committed Nov 10, 2015
1 parent 1405dd3 commit 5501ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matchbox/core.cljx
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@
(let [type (utils/kebab->underscore type)]
(let [listener (comp cb render-fn)]
;; subscribe
(.on ref type listener)
(.on ref type listener listener)
;; build unsubsubscribe fn
(fn [] (.off ref type listener)))))

Expand Down

0 comments on commit 5501ad5

Please sign in to comment.