A ClojureScript implementation of alter-var-root
.
[alter-cljs "0.2.0"]
(ns my-ns
#?(:clj (:refer-clojure :exclude [alter-var-root]))
(#?(:clj :require :cljs :require-macros) [alter-cljs.core :refer [alter-var-root]]))
(alter-var-root whatever
(fn [x]
(do-something-to x)))
:advanced
compilation mode. This is because of the dynamic nature of resolving an argument to a function at runtime, and the aggressive way in which the Google Closure Compiler renames property literals (versus resolution by string).:advanced
compilation.lein spec
ClojureScript tests require PhantomJS. There is a known issue where compilation warnings will be thrown, but the tests still run as expected.
lein cljsbuild spec
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
Copyright (C) 2015 Trevor Schmidt trevor@democratizr.com
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close