Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events: extract event listener validation as a function #55230

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Oct 2, 2024

  1. events: add hasEventListener util for validate

    There was some repetitive logics that validated the existence of
    eventlisteners. We now replace this with a single line of,
    `hasEventListener(self, type)`.
    `self` is the object(e.g. EventEmitter) to be checked whether
    eventlisteners exists or not.
    `type` is the type of eventlisteners, which can be `undefined`
    chosunghoon committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    4befc9e View commit details
    Browse the repository at this point in the history
  2. fixup! events: add hasEventListener util for validate

    chosunghoon committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    d7a42a4 View commit details
    Browse the repository at this point in the history