From 38f74a880d52ae60c875f7d10a18a9124c27f7ed Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 22 May 2016 10:57:53 -0400 Subject: [PATCH] keep a copy of the options used during init! in view-system --- src/views/core.clj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/core.clj b/src/views/core.clj index dc8947b..f2bdbfd 100644 --- a/src/views/core.clj +++ b/src/views/core.clj @@ -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)]