Skip to content

Commit

Permalink
runtime: move is-feature-available? to deprecated apis
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed May 30, 2016
1 parent 9319a35 commit 679ca33
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/runtime/dirac/runtime.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@

(def ^:export get-version get-current-version)

(def ^:export is-feature-available? core/is-feature-available?)
(def ^:export installed? core/installed?)
(def ^:export install! core/install!)
(def ^:export uninstall! core/uninstall!)
(def ^:export get-tag core/get-tag)

(def ^:export set-prefs! prefs/set-prefs!)
(def ^:export get-prefs prefs/get-prefs)
(def ^:export set-pref! prefs/set-pref!)
(def ^:export set-pref! prefs/set-pref!)
; -- DEPRECATED API ---------------------------------------------------------------------------------------------------------

(defn ^:export is-feature-available? [& args]
(.warn js/console "dirac.runtime/is-feature-available? is deprecated, use dirac.runtime/available? instead")
(apply core/is-feature-available? args))

0 comments on commit 679ca33

Please sign in to comment.