motion-prime/sections/table/table_delegate.rb in motion-prime-1.0.3 vs motion-prime/sections/table/table_delegate.rb in motion-prime-1.0.4

- old
+ new

@@ -3,17 +3,18 @@ include DelegateMixin attr_accessor :table_section def initialize(options) self.table_section = options[:section].try(:weak_ref) + @_section_info = table_section.to_s @section_instance = table_section.to_s end - # def dealloc - # pp 'Deallocating table_delegate for ', @section_instance - # super - # end + def dealloc + Prime.logger.dealloc_message :collection_delegate, @_section_info + super + end def init_pull_to_refresh return unless block = table_section.class.pull_to_refresh_block table_section.add_pull_to_refresh(table_section.class.pull_to_refresh_options || {}) do table_section.instance_eval(&block) @@ -58,9 +59,10 @@ table_section.height_for_header_in_group(group) end def scrollViewDidScroll(scroll) table_section.scroll_view_did_scroll(scroll) + table_section.update_pull_to_refresh_after_scroll(scroll) end def scrollViewWillBeginDragging(scroll) table_section.scroll_view_will_begin_dragging(scroll) end \ No newline at end of file