chore: duplicated computation

pull/10320/head
S. Elliott Johnson 2 years ago
parent 3a726a9c39
commit 8555681bcb

@ -1486,13 +1486,7 @@ function process_children(nodes, parent, { visit, state }) {
);
const assignment = serialize_template_literal(sequence, visit, state)[1];
const init = b.stmt(b.assignment('=', b.member(text_id, b.id('nodeValue')), assignment));
const singular = b.stmt(
b.call(
'$.text_effect',
text_id,
b.thunk(serialize_template_literal(sequence, visit, state)[1])
)
);
const singular = b.stmt(b.call('$.text_effect', text_id, b.thunk(assignment)));
if (contains_call_expression && !within_bound_contenteditable) {
state.update_effects.push(singular);

Loading…
Cancel
Save