pull/12878/head
Dominic Gannaway 2 years ago
parent 07899e4c14
commit b41c5bf559

@ -11,9 +11,10 @@ import { queue_micro_task } from './task.js';
* @param {TemplateNode | null} end
*/
export function assign_nodes(start, end) {
if (/** @type {Effect} */ (current_effect).nodes_start === null) {
/** @type {Effect} */ (current_effect).nodes_start = start;
/** @type {Effect} */ (current_effect).nodes_end = end;
var effect = /** @type {Effect} */ (current_effect);
if (effect.nodes_start === null) {
effect.nodes_start = start;
effect.nodes_end = end;
}
}

@ -95,8 +95,8 @@ function create_effect(type, fn, sync, push = true) {
var effect = {
ctx: current_component_context,
deps: null,
n_start: null,
n_end: null,
nodes_start: null,
nodes_end: null,
f: type | DIRTY,
first: null,
fn,

Loading…
Cancel
Save