MCPcopy
hub / github.com/vuejs/core / hasExplicitCallback

Function hasExplicitCallback

packages/runtime-dom/src/components/Transition.ts:111–119  ·  view source on GitHub ↗
(
  hook: Function | Function[] | undefined,
)

Source from the content-addressed store, hash-verified

109 * intends to explicitly control the end of the transition.
110 */
111const hasExplicitCallback = (
112 hook: Function | Function[] | undefined,
113): boolean => {
114 return hook
115 ? isArray(hook)
116 ? hook.some(h => h.length > 1)
117 : hook.length > 1
118 : false
119}
120
121export function resolveTransitionProps(
122 rawProps: TransitionProps,

Callers 2

makeEnterHookFunction · 0.85
onLeaveFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected