Finally viewmode.html render.
This commit is contained in:
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user