From 6b76c53663e5eca25e113fea29d45a94c3383e53 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 27 Sep 2012 23:44:52 -0300 Subject: [PATCH] - Try to fix feature remove issues. --- mindplot/src/main/javascript/Topic.js | 2 +- mindplot/src/main/javascript/model/NodeModel.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mindplot/src/main/javascript/Topic.js b/mindplot/src/main/javascript/Topic.js index a75f5239..c26738d7 100644 --- a/mindplot/src/main/javascript/Topic.js +++ b/mindplot/src/main/javascript/Topic.js @@ -281,7 +281,7 @@ mindplot.Topic = new Class({ var model = this.getModel(); // Update model ... - var feature = model.createFeature(type, attributes,featureId); + var feature = model.createFeature(type, attributes, featureId); model.addFeature(feature); diff --git a/mindplot/src/main/javascript/model/NodeModel.js b/mindplot/src/main/javascript/model/NodeModel.js index c19c1a48..4025df14 100644 --- a/mindplot/src/main/javascript/model/NodeModel.js +++ b/mindplot/src/main/javascript/model/NodeModel.js @@ -32,8 +32,8 @@ mindplot.model.NodeModel = new Class({ this._feature = []; }, - createFeature:function (type, attributes) { - return mindplot.TopicFeature.createModel(type, attributes); + createFeature:function (type, attributes, featureId) { + return mindplot.TopicFeature.createModel(type, attributes, featureId); }, addFeature:function (feature) {