Ticket #7900 (closed enhancement: wontfix)
Create and document interface to jQuery.event.props
|Reported by:||boaz||Owned by:||boaz|
jQuery.event.props maintains a list of properties to copy to the jQuery event object. This is done for efficiency reasons, so that only the necessary properties for jQuery to perform common tasks.
Sometimes, however, a jQuery developer will want to use jQuery to bind to a native event that has an uncommon property, like the dataTransfer property available in the callback of a drop event.
Currently, developers have to manually push such a property onto jQuery.event.props. This is not ideal, because this makes code rely on internal structures that may change in the future.
Even if the the event copying system does not change over time, it is not good practice for jQuery developers to be accessing internal structures within jQuery.
Therefore, jQuery should create and document a public interface for developers to manipulate this list.