Bug Tracker

Opened 11 years ago

Last modified 11 years ago

#8789 closed enhancement

Meta: Event Property Hooks — at Version 7

Reported by: Rick Waldron Owned by:
Priority: blocker Milestone: 1.7
Component: event Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Rick Waldron)

Implement the ability to specify properties of event.originalEvent to be moved over to event.* for specific event types, without the performance sacrifices of copying all event.originalEvent properties or adding to the globally used jQuery.event.props list

Will be particularly useful for newer events introduced by HTML5 JavaScript APIs that have special properties that are ignored by jQuery.event.fix() when it copies the jQuery.event.props array.


Drag/Drop API has "dataTranser", touch event props, messaging event props, Custom data properties

Ultimately, this will allow end devs to write less code and we can stop recommending the extension of jQuery.event.props

Change History (7)

comment:1 Changed 11 years ago by Rick Waldron

Description: modified (diff)

comment:2 Changed 11 years ago by Rick Waldron

Component: unfiledevent
Milestone: 1.next1.6
Owner: set to Rick Waldron
Priority: undecidedlow
Status: newassigned

comment:3 Changed 11 years ago by Rick Waldron

Can be stored as simply as shown here http://jsfiddle.net/rwaldron/JxdNj/

comment:4 Changed 11 years ago by dmethvin

Ticket #6942 is another example of when this could be useful. Right now we run all events through the same jQuery.event.fix paths regardless of event type, which is probably causing performance issues in cases where event frequency is high such as mousemove.

comment:5 Changed 11 years ago by john

Milestone: 1.61.next
Owner: Rick Waldron deleted

Let's try to get this in 1.7.

comment:6 Changed 11 years ago by john

Keywords: 1.7-discuss added

Nominating ticket for 1.7 discussion.

comment:7 Changed 11 years ago by Rick Waldron

Description: modified (diff)


Note: See TracTickets for help on using tickets.