MCPcopy Create free account
hub / github.com/keepfool/vue-tutorials / nextWithBoolean

Function nextWithBoolean

06.Router/basic/js/vue-router.js:1583–1593  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

1581 };
1582
1583 var nextWithBoolean = function nextWithBoolean(res) {
1584 if (typeof res === 'boolean') {
1585 res ? next() : abort();
1586 } else if (isPromise(res)) {
1587 res.then(function (ok) {
1588 ok ? next() : abort();
1589 }, onPromiseError);
1590 } else if (!hook.length) {
1591 next();
1592 }
1593 };
1594
1595 var nextWithData = function nextWithData(data) {
1596 var res = undefined;

Callers 1

vue-router.jsFile · 0.85

Calls 3

isPromiseFunction · 0.85
nextFunction · 0.70
abortFunction · 0.70

Tested by

no test coverage detected