|
|
|
@ -13,7 +13,7 @@ import {
|
|
|
|
|
set_active_effect,
|
|
|
|
|
set_active_reaction
|
|
|
|
|
} from '../../runtime.js';
|
|
|
|
|
import { attach } from './attachments.js';
|
|
|
|
|
import { attach, is_attachment_key } from './attachments.js';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The value/checked attribute in the template actually corresponds to the defaultValue property, so we need
|
|
|
|
@ -242,8 +242,8 @@ export function set_custom_element_data(node, prop, value) {
|
|
|
|
|
/**
|
|
|
|
|
* Spreads attributes onto a DOM element, taking into account the currently set attributes
|
|
|
|
|
* @param {Element & ElementCSSInlineStyle} element
|
|
|
|
|
* @param {Record<string, any> | undefined} prev
|
|
|
|
|
* @param {Record<string, any>} next New attributes - this function mutates this object
|
|
|
|
|
* @param {Record<string | symbol, any> | undefined} prev
|
|
|
|
|
* @param {Record<string | symbol, any>} next New attributes - this function mutates this object
|
|
|
|
|
* @param {string} [css_hash]
|
|
|
|
|
* @param {boolean} [preserve_attribute_case]
|
|
|
|
|
* @param {boolean} [is_custom_element]
|
|
|
|
@ -409,8 +409,10 @@ export function set_attributes(
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (let symbol of Object.getOwnPropertySymbols(next)) {
|
|
|
|
|
if (is_attachment_key(symbol)) {
|
|
|
|
|
attach(element, () => next[symbol]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return current;
|
|
|
|
|
}
|
|
|
|
|