Merge pull request #283 from viebel/master

Make reagent self-host compatible
This commit is contained in:
Juho Teperi 2017-05-19 20:07:59 +03:00 committed by GitHub
commit bc677736ed
2 changed files with 2 additions and 22 deletions

View File

@ -1,6 +1,5 @@
(ns reagentdemo.syntax
(:require [clojure.java.io :as io]
[clojure.string :as string]))
(:require [clojure.string :as string]))
;;; Source splitting

View File

@ -1,6 +1,5 @@
(ns reagent.interop
(:require [clojure.string :as string :refer [join]]
[clojure.java.io :as io]))
(:require [clojure.string :as string :refer [join]]))
(defn- js-call [f args]
(let [argstr (->> (repeat (count args) "~{}")
@ -55,21 +54,3 @@
(let [[field names] (dot-args object field)]
(assert field (str "Field name must start with - in " field))
`(aset ~object ~@names ~value)))
(defmacro .' [& args]
;; Deprecated since names starting with . cause problems with bootstrapped cljs.
(let [ns (str cljs.analyzer/*cljs-ns*)
line (:line (meta &form))]
(binding [*out* *err*]
(println "WARNING: reagent.interop/.' is deprecated in " ns " line " line
". Use reagent.interop/$ instead.")))
`($ ~@args))
(defmacro .! [& args]
;; Deprecated since names starting with . cause problems with bootstrapped cljs.
(let [ns (str cljs.analyzer/*cljs-ns*)
line (:line (meta &form))]
(binding [*out* *err*]
(println "WARNING: reagent.interop/.! is deprecated in " ns " line " line
". Use reagent.interop/$! instead.")))
`($! ~@args))