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

Method install

tools/common/_hyperscript.iife.js:9371–9398  ·  view source on GitHub ↗
(target, source, args, runtime2)

Source from the content-addressed store, hash-verified

9369 this.displayName = "when ... changes";
9370 }
9371 install(target, source, args, runtime2) {
9372 var feature = this;
9373 queueMicrotask(function() {
9374 for (var i = 0; i < feature.exprs.length; i++) {
9375 (function(expr) {
9376 runtime2.reactivity.createEffect(
9377 function() {
9378 return expr.evaluate(
9379 runtime2.makeContext(target, feature, target, null)
9380 );
9381 },
9382 function(newValue) {
9383 var ctx = runtime2.makeContext(target, feature, target, null);
9384 ctx.result = newValue;
9385 ctx.meta.reject = function(err) {
9386 console.error(err.message ? err.message : err);
9387 runtime2.triggerEvent(target, "exception", { error: err });
9388 };
9389 ctx.meta.onHalt = function() {
9390 };
9391 feature.start.execute(ctx);
9392 },
9393 { element: target }
9394 );
9395 })(feature.exprs[i]);
9396 }
9397 });
9398 }
9399 };
9400
9401 // 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