Add deprecation for reg-event.

This commit is contained in:
Mike Thompson 2016-08-03 17:35:17 +10:00
parent 8737d57b0d
commit e527deea99
1 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,11 @@
(console :warn "re-frame: \"register-handler\" has been renamed \"reg-event-db\"")
(apply reg-event-db args))
(defn reg-event
[& args]
(console :warn "re-frame: \"reg-event\" has been renamed \"reg-event-db\"")
(apply reg-event-db args))
(defn register-sub
[& args]
(console :error "re-frame: \"register-sub\" is deprecated. Use \"reg-sub-raw\".")