8000 Event types colliding with Object prototype properties don't work · Issue #3256 · jquery/jquery · GitHub
[go: up one dir, main page]

Skip to content 8000
Event types colliding with Object prototype properties don't work #3256
@gibson042

Description

@gibson042

We use event.type as a key to get the array of event handlers, which throws an exception when we instead receive an Object.prototype property and treat it like an array: https://jsfiddle.net/9t4kqaqr/

Our standard fix is appending a space (cf. delegated selector match tracking and Sizzle createCache), but we should also consider Map for such purposes (ponyfilling as needed), especially if Data.js can be updated accordingly—one of @rwaldron's original goals when creating it.

Metadata

Metadata

Assignees

No one assigned

    Type

    N 39B4 o type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0