MCPcopy Index your code
hub / github.com/TruthHun/BookStack / getHookArgumentsLength

Function getHookArgumentsLength

static/vuejs/vue.runtime.esm.js:6194–6207  ·  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

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

Callers 2

enterFunction · 0.70
leaveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected