Finally viewmode.html render.

This commit is contained in:
Paulo Gustavo Veiga
2014-03-05 00:14:28 -03:00
parent 5710d77bd5
commit dea5b727ac
33 changed files with 158 additions and 159 deletions

View File

@@ -69,7 +69,7 @@ mindplot.model.IMindmap = new Class({
$assert(!child.getParent(), 'Child model seems to be already connected');
// Connect node...
parent.appendChild(child);
parent.append(child);
// Remove from the branch ...
this.removeBranch(child);

View File

@@ -199,7 +199,7 @@ mindplot.model.INodeModel = new Class({
return this.getParent() != null;
},
appendChild : function(node) {
append : function(node) {
throw "Unsupported operation";
},
@@ -225,7 +225,7 @@ mindplot.model.INodeModel = new Class({
children.each(function(snode) {
var tnode = tmindmap.createNode(snode.getType(), snode.getId());
snode.copyTo(tnode);
target.appendChild(tnode);
target.append(tnode);
});
return target;

View File

@@ -124,7 +124,7 @@ mindplot.model.NodeModel = new Class({
return result;
},
appendChild:function (child) {
append:function (child) {
$assert(child && child.isNodeModel(), 'Only NodeModel can be appended to Mindmap object');
this._children.push(child);
child._parent = this;