1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure all ace editors are destroyed in the expression editors

This commit is contained in:
Nick O'Leary 2017-06-26 14:23:48 +01:00
parent e590313297
commit 7a1e4e9e99
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 7 additions and 0 deletions

View File

@ -1649,6 +1649,7 @@ RED.editor = (function() {
} }
RED.sidebar.info.refresh(editing_node); RED.sidebar.info.refresh(editing_node);
RED.workspaces.refresh(); RED.workspaces.refresh();
subflowEditor.destroy();
editStack.pop(); editStack.pop();
editing_node = null; editing_node = null;
}, },
@ -1946,6 +1947,8 @@ RED.editor = (function() {
}, },
close: function() { close: function() {
editStack.pop(); editStack.pop();
expressionEditor.destroy();
testDataEditor.destroy();
}, },
show: function() {} show: function() {}
} }
@ -2020,6 +2023,7 @@ RED.editor = (function() {
}, },
close: function() { close: function() {
editStack.pop(); editStack.pop();
expressionEditor.destroy();
}, },
show: function() {} show: function() {}
} }
@ -2205,6 +2209,8 @@ RED.editor = (function() {
}, },
close: function() { close: function() {
editStack.pop(); editStack.pop();
bufferStringEditor.destroy();
bufferBinEditor.destroy();
}, },
show: function() {} show: function() {}
} }

View File

@ -206,6 +206,7 @@ RED.workspaces = (function() {
RED.view.state(RED.state.DEFAULT); RED.view.state(RED.state.DEFAULT);
} }
RED.sidebar.info.refresh(workspace); RED.sidebar.info.refresh(workspace);
tabflowEditor.destroy();
} }
} }
RED.tray.show(trayOptions); RED.tray.show(trayOptions);