code: function emitLifecycleEvent(widget, eventType, eventArg) {
      var listenerMethod = widget[lifecycleEventMethods[eventType]];
  
      if (listenerMethod) {
          listenerMethod.call(widget, eventArg);
      }
  
      widget.emit(eventType, eventArg);
  }
docs: This method handles invoking a widget's event handler method
  (if present) while also emitting the event through
  the standard EventEmitter.prototype.emit method.
  
  Special events and their corresponding handler methods
  include the following:
  
  beforeDestroy --> onBeforeDestroy
  destroy       --> onDestroy
  beforeUpdate  --> onBeforeUpdate
  update        --> onUpdate
  render        --> onRender