Produce deprecation warnings rather than errors. Dispense with warnings on earlier alpha changes.
This commit is contained in:
parent
31d2da7087
commit
05c1e1fbd9
|
@ -101,14 +101,11 @@
|
|||
;; Assisting the v0.0.7 -> v0.0.8 tranistion. Remove in v0.0.9
|
||||
(defn register-handler
|
||||
[& args]
|
||||
(console :error "re-frame: \"register-handler\" has been renamed \"reg-event\""))
|
||||
(console :warn "re-frame: \"register-handler\" has been renamed \"reg-event\"")
|
||||
(apply reg-event args))
|
||||
|
||||
(defn register-sub
|
||||
[& args]
|
||||
(console :error "re-frame: \"register-sub\" has been renamed \"reg-sub-raw\"."))
|
||||
|
||||
;; v0.0.8 alpha2 -> alpha3
|
||||
(defn def-fx [& args] (console :error "re-frame: in v0.0.8-alpha3 \"def-fx\" was renamed \"reg-fx\"."))
|
||||
(defn def-event [& args] (console :error "re-frame: in v0.0.8-alpha3 \"def-event\" was renamed \"reg-event\"."))
|
||||
(defn def-sub [& args] (console :error "re-frame: in v0.0.8-alpha3 \"def-sub\" was renamed \"reg-sub\"."))
|
||||
(console :error "re-frame: \"register-sub\" is deprecated. Use \"reg-sub-raw\".")
|
||||
(apply reg-sub-raw args))
|
||||
|
||||
|
|
Loading…
Reference in New Issue