lib/react/component/resolution.rb in isomorfeus-react-16.9.15 vs lib/react/component/resolution.rb in isomorfeus-react-16.9.16

- old
+ new

@@ -45,26 +45,22 @@ constant = self.$class().$const_get(module).$const_get(component_name, false); if (typeof constant.react_component !== 'undefined') { component = constant.react_component; break; } - } catch(err) { - component = null; - } + } catch(err) { component = null; } } if (!component) { try { constant = Opal.Object.$const_get(component_name); if (typeof constant.react_component !== 'undefined') { component = constant.react_component; } - } catch(err) { - component = null - } + } catch(err) { component = null; } } } if (component) { - Opal.React.internal_prepare_args_and_render(component, args, block); + return Opal.React.internal_prepare_args_and_render(component, args, block); } else { return #{_react_component_resolution_original_method_missing(component_name, *args, block)}; } } end \ No newline at end of file