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

Function checkDuration

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

Source from the content-addressed store, hash-verified

6162
6163// only used in dev mode
6164function checkDuration (val, name, vnode) {
6165 if (typeof val !== 'number') {
6166 warn(
6167 "<transition> explicit " + name + " duration is not a valid number - " +
6168 "got " + (JSON.stringify(val)) + ".",
6169 vnode.context
6170 );
6171 } else if (isNaN(val)) {
6172 warn(
6173 "<transition> explicit " + name + " duration is NaN - " +
6174 'the duration expression might be incorrect.',
6175 vnode.context
6176 );
6177 }
6178}
6179
6180function isValidDuration (val) {
6181 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