Skip to content
Snippets Groups Projects
Commit 2e6c37a9 authored by DD Liu's avatar DD Liu
Browse files

add the monitor block listener

parent 2c2a8a3f
No related branches found
No related tags found
No related merge requests found
...@@ -60,10 +60,11 @@ class Blocks extends React.Component { ...@@ -60,10 +60,11 @@ class Blocks extends React.Component {
} }
attachVM () { attachVM () {
this.workspace.addChangeListener(this.props.vm.blockListener); this.workspace.addChangeListener(this.props.vm.blockListener);
this.workspace this.flyoutWorkspace = this.workspace
.getFlyout() .getFlyout()
.getWorkspace() .getWorkspace();
.addChangeListener(this.props.vm.flyoutBlockListener); 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_ON', this.onScriptGlowOn);
this.props.vm.addListener('SCRIPT_GLOW_OFF', this.onScriptGlowOff); this.props.vm.addListener('SCRIPT_GLOW_OFF', this.onScriptGlowOff);
this.props.vm.addListener('BLOCK_GLOW_ON', this.onBlockGlowOn); this.props.vm.addListener('BLOCK_GLOW_ON', this.onBlockGlowOn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment