_onQueueEnded(event) {
        if (event === 'init') {
            this.finished = true;
            if (this.onFinished) {
                this.onFinished();
            }
        }
    }
/**
     * @description The queue will notify us if the queue has ended with an event.
     * @param {String} event
     * @private
     */
@description The queue will notify us if the queue has ended with an event.
@param {String} event
@private
@description The queue will notify us if the queue has ended with an event . @param { String } event @private
_onQueueEnded(event) {
        if (event === 'init') {
            this.finished = true;
            if (this.onFinished) {
                this.onFinished();
            }
        }
    }
_onQueueEnded ( event ) { if ( event === 'init' ) { this . finished = true ; if ( this . onFinished ) { this . onFinished ( ) ; } } }
@description The queue will notify us if the queue has ended with an event.
@description The queue will notify us if the queue has ended with an event .