Skip to content
Permalink
Browse files

Introduce a temporary hack to allow jQuery.fn.data("events") to conti…

…nue to work. This will be going away in 1.6. More information will be available in the 1.5 release notes.
  • Loading branch information
csnover committed Jan 17, 2011
1 parent e2941d5 commit 57cc182a40e909868d41f9b1bb405b06138f6cae
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/data.js
@@ -93,6 +93,13 @@ jQuery.extend({
thisCache[ name ] = data;
}

// TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should
// not attempt to inspect the internal events object using jQuery.data, as this
// internal data object is undocumented and subject to change.
if ( name === "events" && !thisCache[name] ) {
return thisCache[ internalKey ] && thisCache[ internalKey ].events;
}

return getByName ? thisCache[ name ] : thisCache;
},

0 comments on commit 57cc182

Please sign in to comment.
You can’t perform that action at this time.