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

Function checkDuration

static/vuejs/vue.esm.js:6616–6630  ·  view source on GitHub ↗
(val, name, vnode)

Source from the content-addressed store, hash-verified

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