Skip to content

Commit e376caa

Browse files
committed
cleanup graph
1 parent 5d2ef89 commit e376caa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/graph/graph.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class GraphViewModel extends ComponentRoot {
2727
this.edges = ko.observableArray();
2828
this.refs = ko.observableArray();
2929
this.nodesById = {};
30+
this.edgesById = {};
3031
this.refsByRefName = {};
3132
this.checkedOutBranch = ko.observable();
3233
this.checkedOutRef = ko.computed(() =>
@@ -39,9 +40,7 @@ class GraphViewModel extends ComponentRoot {
3940
if (!this.HEAD() || !this.HEAD().cx() || !this.HEAD().cy()) return;
4041
return `M 610 68 L ${this.HEAD().cx()} ${this.HEAD().cy()}`;
4142
});
42-
this.showCommitNode = ko.observable(false);
4343
this.currentActionContext = ko.observable();
44-
this.edgesById = {};
4544
this.scrolledToEnd = _.debounce(
4645
() => {
4746
this.limit(numberOfNodesPerLoad + this.limit());
@@ -166,8 +165,6 @@ class GraphViewModel extends ComponentRoot {
166165
}
167166

168167
computeNode(nodes) {
169-
nodes = nodes || this.nodes();
170-
171168
this.markNodesIdeologicalBranches(this.refs());
172169

173170
const updateTimeStamp = moment().valueOf();

0 commit comments

Comments
 (0)