diff --git a/src/re_com/validate.clj b/src/re_com/validate.clj index b60c2982..bf2cd9db 100644 --- a/src/re_com/validate.clj +++ b/src/re_com/validate.clj @@ -1,8 +1,7 @@ (ns re-com.validate) (defmacro validate-args-macro - "if goog.DEBUG is true then validate the args, otherwise replace the validation code with true - for production builds which the {:pre ...} will be happy with" + "if goog.DEBUG is true then validate the args, otherwise replace the validation code with nil" [args-desc args] `(if-not ~(vary-meta 'js/goog.DEBUG assoc :tag 'boolean) nil diff --git a/src/re_demo/debug.cljs b/src/re_demo/debug.cljs index 90748e0b..1b39aa1b 100644 --- a/src/re_demo/debug.cljs +++ b/src/re_demo/debug.cljs @@ -98,9 +98,9 @@ " The two should be combined like this:"] [:pre "[button\n :src (at) ;; <-- note\n :label \"click me\"\n ...]"] - [p "To use it, your " [:code "ns"] " will need to " [:code ":require-macros"] " it as follows:"] + [p "To use it, your " [:code "ns"] " will need to " [:code ":require"] " it as follows:"] [:pre - "(ns my.app\n (:require-macros\n [re-com.core :refer [at]]) ;; <-- note\n (:require\n [re-com.core :refer [h-box v-box ...]])"] + "(ns my.app\n (:require\n [re-com.core :refer [at h-box v-box ...]])) ;; <-- note 'at'"] [p "But wait, you get more. "] [p "When " [:code ":src"] " is provided, re-com will add a \"data\" attribute to the DOM " "node representing a component. This attribute, called " [:code "data-rc-src"] ", will contain any source code coordinates provided. "]