Ensure ace editor instances are freed if edit cancelled

This commit is contained in:
Nick O'Leary
2017-04-21 09:03:41 +01:00
parent d743bdbf5a
commit bb2649d063
3 changed files with 9 additions and 0 deletions

View File

@@ -131,6 +131,9 @@
$("#node-input-func").val(this.editor.getValue());
delete this.editor;
},
oneditcancel: function() {
delete this.editor;
},
oneditresize: function(size) {
var rows = $("#dialog-form>div:not(.node-text-editor-row)");
var height = $("#dialog-form").height();

View File

@@ -140,6 +140,9 @@
$("#node-input-template").val(this.editor.getValue())
delete this.editor;
},
oneditcancel: function() {
delete this.editor;
},
oneditresize: function(size) {
var rows = $("#dialog-form>div:not(.node-text-editor-row)");
var height = $("#dialog-form").height();

View File

@@ -66,6 +66,9 @@
$("#node-input-info").val(this.editor.getValue());
delete this.editor;
},
oneditcancel: function() {
delete this.editor;
},
oneditresize: function(size) {
var rows = $("#dialog-form>div:not(.node-text-editor-row)");
var height = $("#dialog-form").height();