refactoring layout - fixing bugs

This commit is contained in:
Pablo Luna
2011-03-17 16:28:19 +00:00
parent 741ddef314
commit 55f9352c59
4 changed files with 31 additions and 3 deletions

View File

@@ -34,8 +34,13 @@ mindplot.layoutManagers.BaseLayoutManager = new Class({
},
getDesigner:function(){
return this._designer;
},
getType:function(){
return mindplot.layoutManagers.BaseLayoutManager.NAME;
}
});
mindplot.layoutManagers.BaseLayoutManager.NAME ="BaseLayoutManager";
mindplot.layoutManagers.BaseLayoutManager.implement(new Events);
mindplot.layoutManagers.BaseLayoutManager.implement(new Options);

View File

@@ -138,5 +138,10 @@ mindplot.layoutManagers.OriginalLayoutManager = mindplot.layoutManagers.BaseLayo
_isCentralTopic:function(node){
var type = node.getModel().getType();
return type == mindplot.NodeModel.CENTRAL_TOPIC_TYPE;
},
getType:function(){
return mindplot.layoutManagers.OriginalLayoutManager.NAME;
}
});
});
mindplot.layoutManagers.OriginalLayoutManager.NAME ="OriginalLayoutManager";