Import/Export dialogs cannot be cancelled

Fixes #577
This commit is contained in:
Nick O'Leary 2015-03-04 21:44:14 +00:00
parent 34364f5627
commit e013afb053

View File

@ -257,7 +257,7 @@ RED.editor = (function() {
id: "node-dialog-cancel",
text: "Cancel",
click: function() {
if (editing_node._def) {
if (editing_node && editing_node._def) {
if (editing_node._def.oneditcancel) {
editing_node._def.oneditcancel.call(editing_node);
}