Index of all namespaces
A ClojureScript implementation of alter-var-root
A ClojureScript implementation of
(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)))
- Usage within a function body is not supported in
:advancedcompilation 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).
- 0.1.0: Initial release
- 0.2.0: Fixes usage within a function body, for all cases except
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 email@example.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
- You just DO WHAT THE FUCK YOU WANT TO.