Skip to content

jQuery.Event doc does not mention .isTrigger #319

@2is10

Description

@2is10

http://api.jquery.com/category/events/event-object/

It's often helpful to distinguish whether an event handler was triggered programmatically via .trigger or .triggerHandler. The .isTrigger property on jQuery.Event objects seems to be provided for exactly that purpose. It would be more discoverable if the API docs mentioned it.

Currently, the top answer to this question on stackoverflow is a bit more verbose: event.originalEvent === undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions