MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / install

Method install

www/js/_hyperscript-max.js:9824–9851  ·  view source on GitHub ↗
(target, source, args, runtime2)

Source from the content-addressed store, hash-verified

9822 this.displayName = "when ... changes";
9823 }
9824 install(target, source, args, runtime2) {
9825 var feature = this;
9826 queueMicrotask(function() {
9827 for (var i = 0; i < feature.exprs.length; i++) {
9828 (function(expr) {
9829 runtime2.reactivity.createEffect(
9830 function() {
9831 return expr.evaluate(
9832 runtime2.makeContext(target, feature, target, null)
9833 );
9834 },
9835 function(newValue) {
9836 var ctx = runtime2.makeContext(target, feature, target, null);
9837 ctx.result = newValue;
9838 ctx.meta.reject = function(err) {
9839 console.error(err.message ? err.message : err);
9840 runtime2.triggerEvent(target, "exception", { error: err });
9841 };
9842 ctx.meta.onHalt = function() {
9843 };
9844 feature.start.execute(ctx);
9845 },
9846 { element: target }
9847 );
9848 })(feature.exprs[i]);
9849 }
9850 });
9851 }
9852 };
9853
9854 // src/parsetree/features/bind.js

Callers

nothing calls this directly

Calls 5

createEffectMethod · 0.45
evaluateMethod · 0.45
makeContextMethod · 0.45
triggerEventMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected