From 7a1b3eccd02f0d2bc5a65beab02c4260a2299ce8 Mon Sep 17 00:00:00 2001 From: DD Liu Date: Thu, 11 May 2017 17:28:48 -0400 Subject: [PATCH] fix Object.values is not a function test --- src/engine/runtime.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 662d910d7..a6c2b5f8c 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -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]) + ); } /**