Method: Hyperstack::Internal::State::Mapper.remove
- Defined in:
- lib/hyperstack/internal/state/mapper.rb
.remove(observer = @current_observer) ⇒ Object
call remove before unmounting components to prevent stray events from being sent to unmounted components.
141 142 143 144 145 146 |
# File 'lib/hyperstack/internal/state/mapper.rb', line 141 def remove(observer = @current_observer) remove_current_observers_and_objects(observer) new_objects.delete observer # see run_delayed_updater for the purpose of @removed_observers @removed_observers << observer if @removed_observers end |