fix Object.values is not a function test

This commit is contained in:
DD Liu 2017-05-11 17:28:48 -04:00
parent 2a7f3edda6
commit 7a1b3eccd0

View file

@ -702,7 +702,9 @@ class Runtime extends EventEmitter {
// @todo: Only render when this.redrawRequested or clones rendered.
this.renderer.draw();
}
this.emit(Runtime.MONITORS_UPDATE, Object.values(this._monitorState));
this.emit(Runtime.MONITORS_UPDATE,
Object.keys(this._monitorState).map(key => this._monitorState[key])
);
}
/**