Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Henry <akhenry@gmail.com>2021-09-04 02:57:50 +0300
committerAndrew Henry <akhenry@gmail.com>2021-09-04 02:57:50 +0300
commit7ac37a481cf5259f2c856adfead9ef1cdd326443 (patch)
tree7d2727d85c971a379bf2fc3ed8a715ae67b2b509
parentd6474045c3f898fd6e2a7e8e012580c69f5bbf46 (diff)
Revert Layout.vuememory-leak-detector
-rw-r--r--src/ui/layout/Layout.vue11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/layout/Layout.vue b/src/ui/layout/Layout.vue
index 8f486ec30..5be8ce68f 100644
--- a/src/ui/layout/Layout.vue
+++ b/src/ui/layout/Layout.vue
@@ -175,18 +175,13 @@ export default {
}
},
mounted() {
- this.openmct.editor.on('isEditing', this.toggleEditing);
+ this.openmct.editor.on('isEditing', (isEditing) => {
+ this.isEditing = isEditing;
+ });
this.openmct.selection.on('change', this.toggleHasToolbar);
},
- destroyed() {
- this.openmct.selection.off('change', this.toggleHasToolbar);
- this.openmct.editor.off('isEditing', this.toggleEditing);
- },
methods: {
- toggleEditing(isEditing) {
- this.isEditing = isEditing;
- },
enterFullScreen() {
let docElm = document.documentElement;