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

Function getHookArgumentsLength

static/vuejs/vue.esm.js:6642–6655  ·  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

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

Callers 2

enterFunction · 0.70
leaveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected