Skip to content

Commit

Permalink
Set as soon as it's rendered.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeiklejohn committed Nov 25, 2012
1 parent 15b45f1 commit d1e614d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cljs/shafty/behaviour.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
(insert! [this element]
(-add-watch this (gensym "watch") (fn [x y a b]
(set! (.-innerHTML element) b)))
(set! (.-innerHTML element) (deref this))
this))

(extend-type js/HTMLElement
Expand Down

0 comments on commit d1e614d

Please sign in to comment.