Support connection in any node.

This commit is contained in:
Paulo Veiga
2011-09-14 08:51:38 -03:00
parent 5a08728686
commit 304f9f4c97
6 changed files with 41 additions and 27 deletions

View File

@@ -225,7 +225,7 @@ mindplot.model.INodeModel = new Class({
deleteNode : function() {
var mindmap = this.getMindmap();
console.log(mindmap.inspect());
console.log("Before:" + mindmap.inspect());
var parent = this.getParent();
if ($defined(parent)) {
parent.removeChild(this);
@@ -234,7 +234,7 @@ mindplot.model.INodeModel = new Class({
mindmap.removeBranch(this);
}
// It's an isolated node. It must be a hole branch ...
console.log(mindmap.inspect());
console.log("After:" + mindmap.inspect());
},
getPropertiesKeys : function() {

View File

@@ -35,6 +35,10 @@ mindplot.model.NodeModel = new Class({
this._notes = [];
},
getPropertiesKeys : function() {
return Object.keys(this._properties);
},
putProperty : function(key, value) {
$defined(key, 'key can not be null');
this._properties[key] = value;