emit(event, data = {}) {
        if (this.listenedEvents && this.listenedEvents.includes(event)) {
            this.element.dispatchEvent(Object.assign(this.customDOM ? this.customDOM.createEvent(event) : new Event(event), data));
        }
        return this;
    }
/**
     * Emits the specified event.
     *
     * @param event - Event to be emitted.
     * @param data - Data to be passed to the listening function.
     * @returns - IsotopeNode.
     */
Emits the specified event.
@param event - Event to be emitted.
@param data - Data to be passed to the listening function.
Emits the specified event . @param event - Event to be emitted . @param data - Data to be passed to the listening function .
emit(event, data = {}) {
        if (this.listenedEvents && this.listenedEvents.includes(event)) {
            this.element.dispatchEvent(Object.assign(this.customDOM ? this.customDOM.createEvent(event) : new Event(event), data));
        }
        return this;
    }
emit ( event , data = { } ) { if ( this . listenedEvents && this . listenedEvents . includes ( event ) ) { this . element . dispatchEvent ( Object . assign ( this . customDOM ? this . customDOM . createEvent ( event ) : new Event ( event ) , data ) ) ; } return this ; }
Emits the specified event.
Emits the specified event .