Function off

  • remove the given listener for a given event.

    Type Parameters

    Parameters

    • eventName: E

      The event name.

    • listener: Events[E]

      The listener function.

    Returns void

    me.event.off("event-name", myFunction);