(runtime2, target, ctx, value)
| 9599 | } |
| 9600 | } |
| 9601 | function _assignTo(runtime2, target, ctx, value) { |
| 9602 | if (target.type === "classRef") { |
| 9603 | var elt = ctx.you || ctx.me; |
| 9604 | if (elt) value ? elt.classList.add(target.className) : elt.classList.remove(target.className); |
| 9605 | } else if (target.type === "attributeRef" && typeof value === "boolean") { |
| 9606 | var elt = ctx.you || ctx.me; |
| 9607 | if (elt) _setAttr(elt, target.name, value); |
| 9608 | } else { |
| 9609 | var lhs = {}; |
| 9610 | if (target.lhs) { |
| 9611 | for (var key in target.lhs) { |
| 9612 | var expr = target.lhs[key]; |
| 9613 | lhs[key] = expr && expr.evaluate ? expr.evaluate(ctx) : expr; |
| 9614 | } |
| 9615 | } |
| 9616 | target.set(ctx, lhs, value); |
| 9617 | } |
| 9618 | } |
| 9619 | |
| 9620 | // src/parsetree/features/live.js |
| 9621 | var live_exports = {}; |
no test coverage detected