lib/glimmer/data_binding/observable_array.rb in glimmer-0.10.0 vs lib/glimmer/data_binding/observable_array.rb in glimmer-0.10.1
- old
+ new
@@ -36,10 +36,10 @@
def property_observer_list
@property_observer_list ||= Set.new
end
def notify_observers
- property_observer_list.each {|observer| observer.call}
+ property_observer_list.to_a.each(&:call)
end
def <<(element)
super(element)
notify_observers