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

Function checkDuration

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

Source from the content-addressed store, hash-verified

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