diff --git a/mindplot/src/main/javascript/DragTopic.js b/mindplot/src/main/javascript/DragTopic.js index dadae382..051fff42 100644 --- a/mindplot/src/main/javascript/DragTopic.js +++ b/mindplot/src/main/javascript/DragTopic.js @@ -135,7 +135,7 @@ mindplot.DragTopic = new Class({ if (isDragConnected) { var targetTopic = this.getConnectedToTopic(); - if (targetTopic.getType() == mindplot.NodeModel.CENTRAL_TOPIC_TYPE) { + if (targetTopic.getType() == mindplot.model.NodeModel.CENTRAL_TOPIC_TYPE) { // Update topic position ... var dragPivotPosition = dragPivot.getPosition(); diff --git a/mindplot/src/main/javascript/header.js b/mindplot/src/main/javascript/header.js index 28cb8e70..61884d9d 100644 --- a/mindplot/src/main/javascript/header.js +++ b/mindplot/src/main/javascript/header.js @@ -26,4 +26,5 @@ var mindplot = {}; mindplot.util = {}; mindplot.commands = {}; mindplot.layout = {}; -mindplot.widget = {}; \ No newline at end of file +mindplot.widget = {}; +mindplot.model = {}; diff --git a/mindplot/src/main/javascript/model/Mindmap.js b/mindplot/src/main/javascript/model/Mindmap.js index bfc205dc..1db480ce 100644 --- a/mindplot/src/main/javascript/model/Mindmap.js +++ b/mindplot/src/main/javascript/model/Mindmap.js @@ -15,7 +15,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -mindplot.model = {}; mindplot.model.Mindmap = new Class({ initialize : function() { this._branches = [];