Adding a new runtime event for peripheral disconnects that are intentional.

This commit is contained in:
Evelyn Eastmond committed 2019-01-16 20:48:49 -05:00
1 parent 6adabe3647
commit d72d2c5de2
1 file changed
+2 -2
+2 -2
View File
@@ -230,7 +230,7 @@ class Blocks extends React.Component {
this.props.vm.addListener('EXTENSION_ADDED', this.handleExtensionAdded);
this.props.vm.addListener('BLOCKSINFO_UPDATE', this.handleBlocksInfoUpdate);
this.props.vm.addListener('PERIPHERAL_CONNECTED', this.handleStatusButtonUpdate);
this.props.vm.addListener('PERIPHERAL_DISCONNECT_ERROR', this.handleStatusButtonUpdate);
this.props.vm.addListener('PERIPHERAL_DISCONNECT', this.handleStatusButtonUpdate);
}
detachVM () {
this.props.vm.removeListener('SCRIPT_GLOW_ON', this.onScriptGlowOn);
@@ -243,7 +243,7 @@ class Blocks extends React.Component {
this.props.vm.removeListener('EXTENSION_ADDED', this.handleExtensionAdded);
this.props.vm.removeListener('BLOCKSINFO_UPDATE', this.handleBlocksInfoUpdate);
this.props.vm.removeListener('PERIPHERAL_CONNECTED', this.handleStatusButtonUpdate);
this.props.vm.removeListener('PERIPHERAL_DISCONNECT_ERROR', this.handleStatusButtonUpdate);
this.props.vm.removeListener('PERIPHERAL_DISCONNECT', this.handleStatusButtonUpdate);
}
updateToolboxBlockValue (id, value) {