src/event.js
// receive the true name of the event as the first argument).
receive the true name of the event as the first argument).
receive the true name of the event as the first argument ) .
trigger(name) {
        if (!this._events) return this;
        const args = [].slice.call(arguments, 1);
        if (!eventsApi(this, 'trigger', name, args)) return this;
        const events = this._events[name];
        const allEvents = this._events.all;
        if (events) triggerEvents(events, args);
        if (allEvents) triggerEvents(allEvents, arguments);
        return this;
    }
trigger ( name ) { if ( ! this . _events ) return this ; const args = [ ] . slice . call ( arguments , 1 ) ; if ( ! eventsApi ( this , 'trigger' , name , args ) ) return this ; const events = this . _events [ name ] ; const allEvents = this . _events . all ; if ( events ) triggerEvents ( events , args ) ; if ( allEvents ) triggerEvents ( allEvents , arguments ) ; return this ; }
receive the true name of the event as the first argument).
receive the true name of the event as the first argument ) .