eventName(name) {
      const i = name.indexOf('.');
      return i < 0 ? name : name.slice(0, i);
    }
Parses an event name string to return the specific event type.
For example, given "click.foo" returns "click"
@param {string} name - The input event type string.
@return {string} - A string with the event type only.