diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-10-31 13:55:51 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-10-31 21:27:42 -0400 |
commit | e8cf41a051a62bf1f19beab1a5c1d643f121e28e (patch) | |
tree | d7b837d94652883ee04254387e61f9b3cf5ebe22 /src/event.js | |
parent | 6e75fe5f1945893cce3ced481e586d8ad6cbfa1d (diff) | |
download | jquery-e8cf41a051a62bf1f19beab1a5c1d643f121e28e.tar.gz jquery-e8cf41a051a62bf1f19beab1a5c1d643f121e28e.zip |
Fix #10544. Remove deprecated .data() event namespaced triggering.
Data events were horribly slow, never documented, and caused strange interpretation of data items with dots in them.
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/event.js b/src/event.js index 4b0040528..d52102adb 100644 --- a/src/event.js +++ b/src/event.js @@ -195,14 +195,6 @@ jQuery.event = { } }, - // Events that are safe to short-circuit if no handlers are attached. - // Native DOM events should not be added, they may have inline handlers. - customEvent: { - "getData": true, - "setData": true, - "changeData": true - }, - trigger: function( event, data, elem, onlyHandlers ) { // Don't do events on text and comment nodes if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) { @@ -232,7 +224,7 @@ jQuery.event = { namespaces.sort(); } - if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) { + if ( !elem && !jQuery.event.global[ type ] ) { // No jQuery handlers for this event type, and it can't have inline handlers return; } |