Commit 574a2fd3 authored by Frank Bergmann's avatar Frank Bergmann

- moved nodesInTree in the shared class

parent 78320ef2
......@@ -333,22 +333,6 @@ Ext.define('GanttEditor.view.GanttBarPanel', {
if (me.debug) console.log('GanttEditor.view.GanttBarPanel.onCreateDependency: Finished');
},
nodesInTree: function(node) {
var me = this;
var count = 1;
// if (me.debug) console.log('PO.view.gantt.GanttBarPanel.nodesInTree: Starting');
if (node.isExpanded() || node.isRoot()) {
var children = node.childNodes;
children.forEach(function(child) {
count = count + me.nodesInTree(child);
});
}
// if (me.debug) console.log('PO.view.gantt.GanttBarPanel.nodesInTree: Finished');
return count;
},
/**
* Draw all Gantt bars
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment