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

Function checkDuration

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

Source from the content-addressed store, hash-verified

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