Side navigation
Ticket #3722: jquery-3722.patch
File jquery-3722.patch, 0.7 KB (added by n_belaevski, December 17, 2008 06:55PM UTC)
Index: jquery-1.2.6.js
===================================================================
--- jquery-1.2.6.js (revision 11843)
+++ jquery-1.2.6.js (working copy)
@@ -658,6 +658,14 @@
cache: {},
+ queryData: function(elem, name) {
+ elem = elem == window ?
+ windowData :
+ elem;
+
+ return (jQuery.cache[elem[expando]] || {})[name];
+ },
+
data: function( elem, name, data ) {
elem = elem == window ?
windowData :
@@ -1913,7 +1921,7 @@
if ( elem.nodeType == 3 || elem.nodeType == 8 )
return;
- var events = jQuery.data(elem, "events"), ret, index;
+ var events = jQuery.queryData(elem, "events"), ret, index;
if ( events ) {
// Unbind all events for the element
Download in other formats:
Original Format
File jquery-3722.patch, 0.7 KB (added by n_belaevski, December 17, 2008 06:55PM UTC)
Index: jquery-1.2.6.js
===================================================================
--- jquery-1.2.6.js (revision 11843)
+++ jquery-1.2.6.js (working copy)
@@ -658,6 +658,14 @@
cache: {},
+ queryData: function(elem, name) {
+ elem = elem == window ?
+ windowData :
+ elem;
+
+ return (jQuery.cache[elem[expando]] || {})[name];
+ },
+
data: function( elem, name, data ) {
elem = elem == window ?
windowData :
@@ -1913,7 +1921,7 @@
if ( elem.nodeType == 3 || elem.nodeType == 8 )
return;
- var events = jQuery.data(elem, "events"), ret, index;
+ var events = jQuery.queryData(elem, "events"), ret, index;
if ( events ) {
// Unbind all events for the element