Skip to content

Commit

Permalink
keep a copy of the options used during init! in view-system
Browse files Browse the repository at this point in the history
  • Loading branch information
gered committed May 22, 2016
1 parent f41b6d5 commit 38f74a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,11 @@
:send-fn send-fn
:put-hints-fn (:put-hints-fn options)
:auth-fn (:auth-fn options)
:namespace-fn (:namespace-fn options)})
:namespace-fn (:namespace-fn options)
; keeping a copy of the options used during init allows other libraries
; that plugin/extend views functionality (e.g. IView implementations)
; to make use of any options themselves
:options options})
(start-update-watcher! (:refresh-interval options)
(:worker-threads options))
(when-let [stats-log-interval (:stats-log-interval options)]
Expand Down

0 comments on commit 38f74a8

Please sign in to comment.