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

Function getHookArgumentsLength

static/vuejs/vue.runtime.common.js:6196–6209  ·  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

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

Callers 2

enterFunction · 0.70
leaveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected