Merge branch 'UI_test' of https://github.com/hppeng-wynn/hppeng-wynn.github.io into UI_test
This commit is contained in:
commit
d4b47a0f3b
1 changed files with 6 additions and 1 deletions
|
@ -24,7 +24,7 @@ class ComputeNode {
|
|||
* Request update of this compute node. Pushes updates to children.
|
||||
*/
|
||||
update(timestamp) {
|
||||
if (timestamp < this.update_time) {
|
||||
if (timestamp <= this.update_time) {
|
||||
return;
|
||||
}
|
||||
this.update_time = timestamp;
|
||||
|
@ -52,6 +52,11 @@ class ComputeNode {
|
|||
compute_func() {
|
||||
throw "no compute func specified";
|
||||
}
|
||||
|
||||
link_to(parent_node) {
|
||||
this.inputs.push(parent_node)
|
||||
parent_node.children.push(this);
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
|
|
Loading…
Reference in a new issue