destroy editor to ensure fully removed on close (function, template, comment)

to close #1279
This commit is contained in:
Dave Conway-Jones 2017-06-24 12:15:03 +01:00
parent e23354b2bb
commit 395210e4f0
No known key found for this signature in database
GPG Key ID: 81B04231572A9A2D
4 changed files with 11 additions and 5 deletions

View File

@ -117,9 +117,11 @@
}
}
$("#node-input-func").val(this.editor.getValue());
this.editor.destroy();
delete this.editor;
},
oneditcancel: function() {
this.editor.destroy();
delete this.editor;
},
oneditresize: function(size) {

View File

@ -133,10 +133,12 @@
});
},
oneditsave: function() {
$("#node-input-template").val(this.editor.getValue())
$("#node-input-template").val(this.editor.getValue());
this.editor.destroy();
delete this.editor;
},
oneditcancel: function() {
this.editor.destroy();
delete this.editor;
},
oneditresize: function(size) {

View File

@ -52,9 +52,11 @@
},
oneditsave: function() {
$("#node-input-info").val(this.editor.getValue());
this.editor.destroy();
delete this.editor;
},
oneditcancel: function() {
this.editor.destroy();
delete this.editor;
},
oneditresize: function(size) {