reactive-box
Advanced tools
Comparing version 0.6.2 to 0.6.3
{ | ||
"name": "reactive-box", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "Minimalistic, fast, and highly efficient reactivity", | ||
@@ -49,3 +49,3 @@ "scripts": { | ||
"homepage": "https://github.com/betula/reactive-box#readme", | ||
"gitHead": "1656702aa77e59bd29a8c92c714901bd61f2ba63" | ||
"gitHead": "83ece1f12f673408cf02950c9cb4102de240abee" | ||
} |
@@ -45,3 +45,4 @@ /** | ||
} | ||
stack_nodes.set(rel, [0, 0]); | ||
// [<now_in_execution>, <marked_for_recalc>, <is_stopped>] | ||
stack_nodes.set(rel, [0, 0, 0]); | ||
@@ -95,25 +96,27 @@ let level = rel[2]; | ||
do { | ||
stack_node_h[1] = 0; | ||
let expr, sel; | ||
if (stack_node_h[2]) nodes.delete(node); | ||
else | ||
do { | ||
stack_node_h[1] = 0; | ||
let expr, sel; | ||
if (node.length === 3) expr = 1; | ||
else { | ||
if (node[0].size) sel = 1; | ||
else node[3] = 0; | ||
} | ||
if (node.length === 3) expr = 1; | ||
else { | ||
if (node[0].size) sel = 1; | ||
else node[3] = 0; | ||
} | ||
free(node, 1); | ||
nodes.delete(node); | ||
free(node, 1); | ||
nodes.delete(node); | ||
if (expr) node[0](); | ||
if (sel) { | ||
if (node[4]()) { | ||
node_expand(node); | ||
free(node, 0); | ||
if (expr) node[0](); | ||
if (sel) { | ||
if (node[4]()) { | ||
node_expand(node); | ||
free(node, 0); | ||
} | ||
} | ||
} | ||
if (!--limit) throw new Error("Infinity reactions loop"); | ||
} while (stack_node_h[1]); | ||
if (!--limit) throw new Error("Infinity reactions loop"); | ||
} while (stack_node_h[1] && !stack_node_h[2]); | ||
@@ -215,2 +218,3 @@ stack_nodes.delete(node); | ||
last_context = null; | ||
stack_nodes.has(sel_node) && (stack_nodes.get(sel_node)[2] = 1); | ||
}, | ||
@@ -250,2 +254,3 @@ ]; | ||
last_context = null; | ||
stack_nodes.has(expr_node) && (stack_nodes.get(expr_node)[2] = 1); | ||
}, | ||
@@ -252,0 +257,0 @@ ]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15882
238