Home / Function/ createOnceHandler() — vue Function Reference

createOnceHandler() — vue Function Reference

Architecture documentation for the createOnceHandler() function in events.ts from the vue codebase.

Entity Profile

Relationship Graph

Source Code

src/core/instance/events.ts lines 32–40

function createOnceHandler(event, fn) {
  const _target = target
  return function onceHandler() {
    const res = fn.apply(null, arguments)
    if (res !== null) {
      _target.$off(event, onceHandler)
    }
  }
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free