(target, source, args, runtime2)
| 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 |
nothing calls this directly
no test coverage detected