From 2e6c37a9ba873494a907a50efccdc62571c3bc31 Mon Sep 17 00:00:00 2001 From: DD Liu <liudi@media.mit.edu> Date: Tue, 9 May 2017 16:48:43 -0400 Subject: [PATCH] add the monitor block listener --- src/containers/blocks.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx index ecd816204..bdbbb2b4e 100644 --- a/src/containers/blocks.jsx +++ b/src/containers/blocks.jsx @@ -60,10 +60,11 @@ class Blocks extends React.Component { } attachVM () { this.workspace.addChangeListener(this.props.vm.blockListener); - this.workspace + this.flyoutWorkspace = this.workspace .getFlyout() - .getWorkspace() - .addChangeListener(this.props.vm.flyoutBlockListener); + .getWorkspace(); + this.flyoutWorkspace.addChangeListener(this.props.vm.flyoutBlockListener); + this.flyoutWorkspace.addChangeListener(this.props.vm.monitorBlockListener); this.props.vm.addListener('SCRIPT_GLOW_ON', this.onScriptGlowOn); this.props.vm.addListener('SCRIPT_GLOW_OFF', this.onScriptGlowOff); this.props.vm.addListener('BLOCK_GLOW_ON', this.onBlockGlowOn); -- GitLab