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

Function getHookArgumentsLength

static/vuejs/vue.runtime.js:6190–6203  ·  view source on GitHub ↗

* Normalize a transition hook's argument length. The hook may be: * - a merged hook (invoker) with the original in .fns * - a wrapped component method (check ._length) * - a plain function (.length)

(fn)

Source from the content-addressed store, hash-verified

6188 * - a plain function (.length)
6189 */
6190function getHookArgumentsLength (fn) {
6191 if (!fn) { return false }
6192 var invokerFns = fn.fns;
6193 if (invokerFns) {
6194 // invoker
6195 return getHookArgumentsLength(
6196 Array.isArray(invokerFns)
6197 ? invokerFns[0]
6198 : invokerFns
6199 )
6200 } else {
6201 return (fn._length || fn.length) > 1
6202 }
6203}
6204
6205function _enter (_, vnode) {
6206 if (!vnode.data.show) {

Callers 2

enterFunction · 0.70
leaveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected