drive-by fix

pull/15352/head
Rich Harris 2 years ago
parent bf9c305233
commit ec4709f1d1

@ -229,8 +229,7 @@ export function RegularElement(node, context) {
node_id,
attributes_id,
(node.metadata.svg || node.metadata.mathml || is_custom_element_node(node)) && b.true,
is_custom_element_node(node) && b.true,
context.state
is_custom_element_node(node) && b.true
);
// If value binding exists, that one takes care of calling $.init_select

@ -114,8 +114,7 @@ export function SvelteElement(node, context) {
element_id,
attributes_id,
b.binary('===', b.member(element_id, 'namespaceURI'), b.id('$.NAMESPACE_SVG')),
b.call(b.member(b.member(element_id, 'nodeName'), 'includes'), b.literal('-')),
context.state
b.call(b.member(b.member(element_id, 'nodeName'), 'includes'), b.literal('-'))
);
}

@ -19,7 +19,6 @@ import { build_template_chunk, get_expression_id } from './utils.js';
* @param {Identifier} attributes_id
* @param {false | Expression} preserve_attribute_case
* @param {false | Expression} is_custom_element
* @param {ComponentClientTransformState} state
*/
export function build_set_attributes(
attributes,
@ -29,8 +28,7 @@ export function build_set_attributes(
element_id,
attributes_id,
preserve_attribute_case,
is_custom_element,
state
is_custom_element
) {
let is_dynamic = false;

Loading…
Cancel
Save