MCPcopy
hub / github.com/keepfool/vue-tutorials / flushBatcherQueue

Function flushBatcherQueue

06.Router/basic/js/vue.js:3039–3060  ·  view source on GitHub ↗

* Flush both queues and run the watchers.

()

Source from the content-addressed store, hash-verified

3037 */
3038
3039 function flushBatcherQueue() {
3040 var _again = true;
3041
3042 _function: while (_again) {
3043 _again = false;
3044
3045 runBatcherQueue(queue);
3046 runBatcherQueue(userQueue);
3047 // user watchers triggered more watchers,
3048 // keep flushing until it depletes
3049 if (queue.length) {
3050 _again = true;
3051 continue _function;
3052 }
3053 // dev tool hook
3054 /* istanbul ignore if */
3055 if (devtools && config.devtools) {
3056 devtools.emit('flush');
3057 }
3058 resetBatcherState();
3059 }
3060 }
3061
3062 /**
3063 * Run the watchers in a single queue.

Callers

nothing calls this directly

Calls 2

runBatcherQueueFunction · 0.70
resetBatcherStateFunction · 0.70

Tested by

no test coverage detected