dispatchEvent method

  1. @override
void dispatchEvent(
  1. Event event
)
override

Implementation

@override
void dispatchEvent(Event event) {
  // Events such as EVENT_DOM_CONTENT_LOADED need to ensure that listeners are flushed and registered.
  if (event.type == EVENT_DOM_CONTENT_LOADED || event.type == EVENT_LOAD || event.type == EVENT_ERROR) {
    flushUICommand();
  }
  super.dispatchEvent(event);
}