pull/7516/head
Yuichiro Yamashita 4 years ago
parent ddc94679b9
commit ce69e79c71

@ -129,7 +129,7 @@ function update($$) {
export function flush_render_callbacks(fns: Function[]): void { export function flush_render_callbacks(fns: Function[]): void {
const filtered = []; const filtered = [];
const targets = []; const targets = [];
render_callbacks.forEach((c) => fns.indexOf(c) !== -1 ? filtered.push(c) : targets.push(c)); render_callbacks.forEach((c) => fns.indexOf(c) === -1 ? filtered.push(c) : targets.push(c));
targets.forEach((c) => c()); targets.forEach((c) => c());
render_callbacks = filtered; render_callbacks = filtered;
} }

Loading…
Cancel
Save