We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0dc02f commit 2b1a476Copy full SHA for 2b1a476
index.js
@@ -97,9 +97,21 @@ function ReactiveFunction(options){
97
graph.removeEdge(input.id, output.id);
98
});
99
100
+ // Remove property nodes from the dependency graph if they have no edges connected.
101
+ //inputs.concat([output]).forEach(function (property){
102
+ // var noOutgoing = (graph.outgoing(property.id).length === 0);
103
+ // var noIncoming = (graph.incoming(property.id).length === 0);
104
+ // inDegree, outDegree?
105
+ // if(noOutgoing && noIncoming){
106
+ // graph.removeNode(property.id);
107
+ // }
108
+ //});
109
+
110
// Remove the reference to the 'evaluate' function.
111
delete output.evaluate;
112
113
+ // Remove references to everything.
114
+ inputs = callback = output = undefined;
115
}
116
};
117
0 commit comments