lib/glimmer/dsl/observe_expression.rb in glimmer-2.7.7 vs lib/glimmer/dsl/observe_expression.rb in glimmer-2.7.8

- old
+ new

@@ -34,14 +34,10 @@ (args[1].nil? || args[1].is_a?(Hash) || textual?(args[1])) end def interpret(parent, keyword, *args, &block) observer = DataBinding::Observer.proc(&block) - if args[1].to_s.match(REGEX_NESTED_OR_INDEXED_PROPERTY) - observer_registration = observer.observe(DataBinding::ModelBinding.new(*args)) - else - observer_registration = observer.observe(*args) - end + observer_registration = observer.observe(DataBinding::ModelBinding.new(*args)) observer_registration end end end end