(target, value)
| 2482 | }); |
| 2483 | } |
| 2484 | replaceInDom(target, value) { |
| 2485 | this.implicitLoop(target, (elt) => { |
| 2486 | var parent = elt.parentElement; |
| 2487 | if (value instanceof Node) { |
| 2488 | elt.replaceWith(value.cloneNode(true)); |
| 2489 | } else { |
| 2490 | elt.replaceWith(this.convertValue(value, "Fragment")); |
| 2491 | } |
| 2492 | if (parent) this.processNode(parent); |
| 2493 | }); |
| 2494 | } |
| 2495 | /** |
| 2496 | * Check if a method call is known to mutate its receiver, and notify if so. |
| 2497 | * @param {Object} target - The object the method was called on |
no test coverage detected