(runtime2, target, ctx, value)
| 10053 | } |
| 10054 | } |
| 10055 | function _assignTo(runtime2, target, ctx, value) { |
| 10056 | if (target.type === "classRef") { |
| 10057 | var elt = ctx.you || ctx.me; |
| 10058 | if (elt) value ? elt.classList.add(target.className) : elt.classList.remove(target.className); |
| 10059 | } else if (target.type === "attributeRef" && typeof value === "boolean") { |
| 10060 | var elt = ctx.you || ctx.me; |
| 10061 | if (elt) _setAttr(elt, target.name, value); |
| 10062 | } else { |
| 10063 | var lhs = {}; |
| 10064 | if (target.lhs) { |
| 10065 | for (var key in target.lhs) { |
| 10066 | var expr = target.lhs[key]; |
| 10067 | lhs[key] = expr && expr.evaluate ? expr.evaluate(ctx) : expr; |
| 10068 | } |
| 10069 | } |
| 10070 | target.set(ctx, lhs, value); |
| 10071 | } |
| 10072 | } |
| 10073 | |
| 10074 | // src/parsetree/features/live.js |
| 10075 | var live_exports = {}; |
no test coverage detected