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

Function checkDuration

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

Source from the content-addressed store, hash-verified

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