lib/ProMotion/table/data/table_data.rb in ProMotion-1.2.1 vs lib/ProMotion/table/data/table_data.rb in ProMotion-2.0.0.rc1

- old
+ new

@@ -2,10 +2,10 @@ class TableData attr_accessor :data, :filtered_data, :search_string, :original_search_string, :filtered, :table_view def initialize(data, table_view) self.data = data - self.table_view = table_view + self.table_view = WeakRef.new(table_view) end def section(index) s = sections.at(index) s || { title: nil, cells: [] }