Lint and format src/runtime/internal/scheduler.js

pull/8569/head
S. Elliott Johnson 3 years ago
parent 8f7b17a211
commit ea9256935c

@ -66,8 +66,7 @@ export function flush() {
set_current_component(component); set_current_component(component);
update(component.$$); update(component.$$);
} }
} } catch (e) {
catch (e) {
// reset dirty state to not end up in a deadlocked state and then rethrow // reset dirty state to not end up in a deadlocked state and then rethrow
dirty_components.length = 0; dirty_components.length = 0;
flushidx = 0; flushidx = 0;
@ -76,8 +75,7 @@ export function flush() {
set_current_component(null); set_current_component(null);
dirty_components.length = 0; dirty_components.length = 0;
flushidx = 0; flushidx = 0;
while (binding_callbacks.length) while (binding_callbacks.length) binding_callbacks.pop()();
binding_callbacks.pop()();
// then, once components are updated, call // then, once components are updated, call
// afterUpdate functions. This may cause // afterUpdate functions. This may cause
// subsequent updates... // subsequent updates...
@ -121,7 +119,3 @@ export function flush_render_callbacks(fns) {
targets.forEach((c) => c()); targets.forEach((c) => c());
render_callbacks = filtered; render_callbacks = filtered;
} }

Loading…
Cancel
Save