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

Function getHookArgumentsLength

static/vuejs/vue.js:6638–6651  ·  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

6636 * - a plain function (.length)
6637 */
6638function getHookArgumentsLength (fn) {
6639 if (!fn) { return false }
6640 var invokerFns = fn.fns;
6641 if (invokerFns) {
6642 // invoker
6643 return getHookArgumentsLength(
6644 Array.isArray(invokerFns)
6645 ? invokerFns[0]
6646 : invokerFns
6647 )
6648 } else {
6649 return (fn._length || fn.length) > 1
6650 }
6651}
6652
6653function _enter (_, vnode) {
6654 if (!vnode.data.show) {

Callers 2

enterFunction · 0.70
leaveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected