From 1811749964ad6e3d1df0d12de5cdb70bc4b9f5e2 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 28 Sep 2012 00:49:45 -0300 Subject: [PATCH] - Fix error when the node is being deleted and the text is being edited. --- mindplot/src/main/javascript/commands/DeleteCommand.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mindplot/src/main/javascript/commands/DeleteCommand.js b/mindplot/src/main/javascript/commands/DeleteCommand.js index 94f1918d..7ed894b1 100644 --- a/mindplot/src/main/javascript/commands/DeleteCommand.js +++ b/mindplot/src/main/javascript/commands/DeleteCommand.js @@ -36,6 +36,9 @@ mindplot.commands.DeleteCommand = new Class({ if (topics.length > 0) { topics.each(function (topic) { + // In case that it's editing text node, force close without update ... + topic.closeEditors(); + var model = topic.getModel(); // Delete relationships