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

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
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
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();