Method: MotionPrime::AbstractCollectionSection#reset_collection_data
- Defined in:
- motion-prime/sections/abstract_collection.rb
#reset_collection_data ⇒ Boolean
Reset all collection data.
93 94 95 96 97 98 99 100 101 102 103 |
# File 'motion-prime/sections/abstract_collection.rb', line 93 def reset_collection_data @did_appear = false Array.wrap(@data).flatten.each do |section| next unless element = section.container_element element.(reuse_identifier: nil) element.view.try(:removeFromSuperview) end @data = nil @data_stamp = nil true end |