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