mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
destroy editor to ensure fully removed on close (function, template, comment)
to close #1279
This commit is contained in:
parent
e23354b2bb
commit
395210e4f0
@ -117,9 +117,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("#node-input-func").val(this.editor.getValue());
|
$("#node-input-func").val(this.editor.getValue());
|
||||||
|
this.editor.destroy();
|
||||||
delete this.editor;
|
delete this.editor;
|
||||||
},
|
},
|
||||||
oneditcancel: function() {
|
oneditcancel: function() {
|
||||||
|
this.editor.destroy();
|
||||||
delete this.editor;
|
delete this.editor;
|
||||||
},
|
},
|
||||||
oneditresize: function(size) {
|
oneditresize: function(size) {
|
||||||
|
@ -133,10 +133,12 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
oneditsave: function() {
|
oneditsave: function() {
|
||||||
$("#node-input-template").val(this.editor.getValue())
|
$("#node-input-template").val(this.editor.getValue());
|
||||||
|
this.editor.destroy();
|
||||||
delete this.editor;
|
delete this.editor;
|
||||||
},
|
},
|
||||||
oneditcancel: function() {
|
oneditcancel: function() {
|
||||||
|
this.editor.destroy();
|
||||||
delete this.editor;
|
delete this.editor;
|
||||||
},
|
},
|
||||||
oneditresize: function(size) {
|
oneditresize: function(size) {
|
||||||
|
@ -52,9 +52,11 @@
|
|||||||
},
|
},
|
||||||
oneditsave: function() {
|
oneditsave: function() {
|
||||||
$("#node-input-info").val(this.editor.getValue());
|
$("#node-input-info").val(this.editor.getValue());
|
||||||
|
this.editor.destroy();
|
||||||
delete this.editor;
|
delete this.editor;
|
||||||
},
|
},
|
||||||
oneditcancel: function() {
|
oneditcancel: function() {
|
||||||
|
this.editor.destroy();
|
||||||
delete this.editor;
|
delete this.editor;
|
||||||
},
|
},
|
||||||
oneditresize: function(size) {
|
oneditresize: function(size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user