@@ -56,20 +56,20 @@ class Blocks extends React.Component {
5656 . getFlyout ( )
5757 . getWorkspace ( )
5858 . addChangeListener ( this . props . vm . flyoutBlockListener ) ;
59- this . props . vm . on ( 'SCRIPT_GLOW_ON' , this . onScriptGlowOn ) ;
60- this . props . vm . on ( 'SCRIPT_GLOW_OFF' , this . onScriptGlowOff ) ;
61- this . props . vm . on ( 'BLOCK_GLOW_ON' , this . onBlockGlowOn ) ;
62- this . props . vm . on ( 'BLOCK_GLOW_OFF' , this . onBlockGlowOff ) ;
63- this . props . vm . on ( 'VISUAL_REPORT' , this . onVisualReport ) ;
64- this . props . vm . on ( 'workspaceUpdate' , this . onWorkspaceUpdate ) ;
59+ this . props . vm . addListener ( 'SCRIPT_GLOW_ON' , this . onScriptGlowOn ) ;
60+ this . props . vm . addListener ( 'SCRIPT_GLOW_OFF' , this . onScriptGlowOff ) ;
61+ this . props . vm . addListener ( 'BLOCK_GLOW_ON' , this . onBlockGlowOn ) ;
62+ this . props . vm . addListener ( 'BLOCK_GLOW_OFF' , this . onBlockGlowOff ) ;
63+ this . props . vm . addListener ( 'VISUAL_REPORT' , this . onVisualReport ) ;
64+ this . props . vm . addListener ( 'workspaceUpdate' , this . onWorkspaceUpdate ) ;
6565 }
6666 detachVM ( ) {
67- this . props . vm . off ( 'SCRIPT_GLOW_ON' , this . onScriptGlowOn ) ;
68- this . props . vm . off ( 'SCRIPT_GLOW_OFF' , this . onScriptGlowOff ) ;
69- this . props . vm . off ( 'BLOCK_GLOW_ON' , this . onBlockGlowOn ) ;
70- this . props . vm . off ( 'BLOCK_GLOW_OFF' , this . onBlockGlowOff ) ;
71- this . props . vm . off ( 'VISUAL_REPORT' , this . onVisualReport ) ;
72- this . props . vm . off ( 'workspaceUpdate' , this . onWorkspaceUpdate ) ;
67+ this . props . vm . removeListener ( 'SCRIPT_GLOW_ON' , this . onScriptGlowOn ) ;
68+ this . props . vm . removeListener ( 'SCRIPT_GLOW_OFF' , this . onScriptGlowOff ) ;
69+ this . props . vm . removeListener ( 'BLOCK_GLOW_ON' , this . onBlockGlowOn ) ;
70+ this . props . vm . removeListener ( 'BLOCK_GLOW_OFF' , this . onBlockGlowOff ) ;
71+ this . props . vm . removeListener ( 'VISUAL_REPORT' , this . onVisualReport ) ;
72+ this . props . vm . removeListener ( 'workspaceUpdate' , this . onWorkspaceUpdate ) ;
7373 }
7474 onWorkspaceMetricsChange ( ) {
7575 const target = this . props . vm . editingTarget ;
0 commit comments