TerminalDoc update
The TerminalService does not have $on, $off, and $emit properties. I believe this comes from the ts declaration, but in plain js, this produces an error. Even in the TerminalDemo.vue, the TerminalService uses the event listeners without the $ sign. This should be fixed, because its misleading.pull/548/head
parent
c8be313802
commit
3b1c3067a0
|
@ -176,14 +176,14 @@ export default {
|
|||
response = "Unknown command: " + command;
|
||||
}
|
||||
|
||||
TerminalService.$emit('response', response);
|
||||
TerminalService.emit('response', response);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
TerminalService.$on('command', this.commandHandler);
|
||||
TerminalService.on('command', this.commandHandler);
|
||||
},
|
||||
beforeUnmount() {
|
||||
TerminalService.$off('command', this.commandHandler);
|
||||
TerminalService.off('command', this.commandHandler);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue