lib/ProMotion/table/extensions/searchable.rb in ProMotion-1.0.4 vs lib/ProMotion/table/extensions/searchable.rb in ProMotion-1.1.0.rc1

- old
+ new

@@ -40,22 +40,23 @@ end ######### iOS methods, headless camel case ####### def searchDisplayController(controller, shouldReloadTableForSearchString:search_string) - @promotion_table_data.search(search_string) + self.promotion_table_data.search(search_string) true end def searchDisplayControllerWillEndSearch(controller) - @promotion_table_data.stop_searching - @promotion_table_data_data = nil + self.promotion_table_data.stop_searching self.table_view.setScrollEnabled true self.table_view.reloadData + @table_search_display_controller.delegate.will_end_search if @table_search_display_controller.delegate.respond_to? "will_end_search" end def searchDisplayControllerWillBeginSearch(controller) self.table_view.setScrollEnabled false + @table_search_display_controller.delegate.will_begin_search if @table_search_display_controller.delegate.respond_to? "will_begin_search" end end end end