diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-01-03 20:39:15 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-01-03 20:43:01 -0500 |
commit | 445dbd9d95e2df2f3cb454cb20ba3ae7a84e7eaf (patch) | |
tree | c51fe7011a7811287d0b16a7547afe25154c2556 /src/event.js | |
parent | 0d540c3750bd5d702ec5cc425fd4eebd1089fa52 (diff) | |
download | jquery-445dbd9d95e2df2f3cb454cb20ba3ae7a84e7eaf.tar.gz jquery-445dbd9d95e2df2f3cb454cb20ba3ae7a84e7eaf.zip |
Revert data.js rewrite.
Reverts the following commits:
commit f717226b3a44f918eec30b2d59ab257270189bc3
Author: Rick Waldron <waldron.rick@gmail.com>
Date: Mon Dec 31 18:06:38 2012 -0500
Only splice from internal arrays when item actually exists.
commit b9cdc4136b688963d1dc4befb169be02a0216ba9
Author: Rick Waldron <waldron.rick@gmail.com>
Date: Mon Dec 31 16:20:35 2012 -0500
Updates to data.js re-write to pass events and manipulation
commit d1de3000c6d50c298de14fb1ae3381d75c303723
Author: Rick Waldron <waldron.rick@gmail.com>
Date: Mon Dec 31 15:09:45 2012 -0500
2.0: Rewrite data.js
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index 4e7f7424c..733e563c2 100644 --- a/src/event.js +++ b/src/event.js @@ -16,7 +16,7 @@ jQuery.event = { t = 0; // Don't attach events to noData or text/comment nodes (allow plain objects tho) - if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = data_priv.get( elem )) ) { + if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) { return; } @@ -124,7 +124,7 @@ jQuery.event = { var tns, type, origType, namespaces, origCount, j, events, special, eventType, handleObj, t = 0, - elemData = data_priv.hasData( elem ) && data_priv.get( elem ); + elemData = jQuery.hasData( elem ) && jQuery._data( elem ); if ( !elemData || !(events = elemData.events) ) { return; |