diff options
author | Colin Snover <github.com@zetafleet.com> | 2011-01-17 15:22:49 -0600 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2011-01-17 15:22:49 -0600 |
commit | 57cc182a40e909868d41f9b1bb405b06138f6cae (patch) | |
tree | cfde2014545d1c0124ecbeb9bcc21cb2705eac50 /src/data.js | |
parent | e2941d5a98e91c5f61b200b2763e5fa0eb339365 (diff) | |
download | jquery-57cc182a40e909868d41f9b1bb405b06138f6cae.tar.gz jquery-57cc182a40e909868d41f9b1bb405b06138f6cae.zip |
Introduce a temporary hack to allow jQuery.fn.data("events") to continue to work. This will be going away in 1.6. More information will be available in the 1.5 release notes.
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/data.js b/src/data.js index a1abc9ed6..21f0e3a55 100644 --- a/src/data.js +++ b/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; }, |