set ready(val) {
        const prev = this.ready;
        this.ready_ = val;

        if (val !== prev) {
            this.emit(val ? 'ready' : 'unready');
        }
    }
Sets the ready status and sends a 'ready' or 'unready' event if it has changed
@param {*|boolean} val New ready status