lib/volt/page/bindings/each_binding.rb
# When this each_binding is removed, cleanup.
When this each_binding is removed, cleanup.
When this each_binding is removed cleanup .
def remove
    @added_listener.remove
    @added_listener = nil
    @changed_listener.remove
    @changed_listener = nil
    @removed_listener.remove
    @removed_listener = nil
    if @templates
      @templates.compact.each(&:remove)
      @templates = nil
    end
    super
  end
def remove @added_listener . remove @added_listener = nil @changed_listener . remove @changed_listener = nil @removed_listener . remove @removed_listener = nil if @templates @templates . compact . each ( & :remove ) @templates = nil end super end
When this each_binding is removed, cleanup.
When this each_binding is removed cleanup .