make callback optional

pull/2030/head
Rich Harris 6 years ago
parent fb534a3d50
commit 3c1734c1fc

@ -19,7 +19,7 @@ export function add_render_callback(fn) {
} }
export function nextTick(fn) { export function nextTick(fn) {
add_render_callback(fn); if (fn) add_render_callback(fn);
schedule_update(); schedule_update();
return update_promise; return update_promise;
} }

Loading…
Cancel
Save