MCPcopy Create free account
hub / github.com/TruthHun/BookStack / checkDuration

Function checkDuration

static/vuejs/vue.common.js:6618–6632  ·  view source on GitHub ↗
(val, name, vnode)

Source from the content-addressed store, hash-verified

6616
6617// only used in dev mode
6618function checkDuration (val, name, vnode) {
6619 if (typeof val !== 'number') {
6620 warn(
6621 "<transition> explicit " + name + " duration is not a valid number - " +
6622 "got " + (JSON.stringify(val)) + ".",
6623 vnode.context
6624 );
6625 } else if (isNaN(val)) {
6626 warn(
6627 "<transition> explicit " + name + " duration is NaN - " +
6628 'the duration expression might be incorrect.',
6629 vnode.context
6630 );
6631 }
6632}
6633
6634function isValidDuration (val) {
6635 return typeof val === 'number' && !isNaN(val)

Callers 2

enterFunction · 0.70
leaveFunction · 0.70

Calls 1

warnFunction · 0.50

Tested by

no test coverage detected