* Called when one or more attributes are mutated. * Note: Must be called inside a mutate context. * Note: Boolean attributes have a value of `true` and `false` when * present and missing, respectively. * @param {!JsonObject }
(mutations)
| 1807 | * @param {!JsonObject<string, (null|boolean|string|number|Array|Object)>} mutations |
| 1808 | */ |
| 1809 | mutatedAttributesCallback(mutations) { |
| 1810 | if (this.impl_) { |
| 1811 | this.impl_.mutatedAttributesCallback(mutations); |
| 1812 | } else if (this.R1()) { |
| 1813 | // If amp-bind is trying to mutate an uninitialized BaseElement, it is probably about time |
| 1814 | // to initialize it. |
| 1815 | const scheduler = getSchedulerForDoc(this); |
| 1816 | scheduler.scheduleAsap(this); |
| 1817 | } |
| 1818 | } |
| 1819 | |
| 1820 | /** |
| 1821 | * Enqueues the action with the element. If element has been upgraded and |
nothing calls this directly
no test coverage detected