diff --git a/src/reagent/impl/component.cljs b/src/reagent/impl/component.cljs index b4bcf18..bfae327 100644 --- a/src/reagent/impl/component.cljs +++ b/src/reagent/impl/component.cljs @@ -58,11 +58,11 @@ (defn ^boolean reagent-class? [c] (and (fn? c) - (some? (some-> c .-prototype (.-reagentRender))))) + (some? (some-> c (.-prototype) (.-reagentRender))))) (defn ^boolean react-class? [c] (and (fn? c) - (some? (some-> c .-prototype (.-render))))) + (some? (some-> c (.-prototype) (.-render))))) (defn ^boolean reagent-component? [c] (some? (.-reagentRender c)))