Skip to content

Commit

Permalink
Merge pull request #20 from pyr/develop
Browse files Browse the repository at this point in the history
do not force all refs to nil
  • Loading branch information
Sam Ritchie committed Sep 3, 2014
2 parents 174a383 + 1de9c3c commit 31336d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/om_bootstrap/util.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@
handles :on-select :on-click, :on-blur, kebab-cased as om-tools
prefers."
(let [merge-class (fn [l r] (str l " " r))
orig-fn (fn [l r] (or l r))
empty-fn (fn [_ _] nil)]
{:className merge-class
:class merge-class
:style merge
:children empty-fn
:key empty-fn
:ref empty-fn
:ref orig-fn
:on-select chain-fns
:on-click chain-fns
:on-blur chain-fns}))
Expand Down

0 comments on commit 31336d2

Please sign in to comment.