Skip to content

Commit

Permalink
Fix default props in advanced compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmohs committed Jun 24, 2015
1 parent 767492b commit d49e015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(def build-dir (or (System/getenv "BUILD_DIR") (throw (Exception. "BUILD_DIR is not defined"))))


(defproject dmohs/react "0.2.4"
(defproject dmohs/react "0.2.5"
:description "A ClojureScript wrapper for React."
:license "http://opensource.org/licenses/MIT"
:url "https://github.com/dmohs/react-cljs"
Expand Down
2 changes: 1 addition & 1 deletion src/dmohs/react/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


(defn- props [instance]
(let [defaults (.. instance -props -cljsDefaultProps)]
(let [defaults (aget instance "props" "cljsDefaultProps")]
(if defaults
(merge defaults (.. instance -props -cljsProps))
(.. instance -props -cljsProps))))
Expand Down

0 comments on commit d49e015

Please sign in to comment.