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

Function getHookArgumentsLength

static/vuejs/vue.common.js:6644–6657  ·  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

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

Callers 2

enterFunction · 0.70
leaveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected