Method: Bluesky::PureComponent#dispatch
- Defined in:
- lib/bluesky/pure_component.rb
#dispatch(action, *payload, &block) ⇒ Object
166 167 168 169 170 171 |
# File 'lib/bluesky/pure_component.rb', line 166 def dispatch(action, *payload, &block) warn 'Missing delegate' unless @delegate root = @delegate root = root.parent while root.respond_to?(:parent) && root.parent root.dispatch(@delegate, action, *payload, &block) end |