X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdata.js;h=21f0e3a55f6592a1607878ecf78de444c17dfe9f;hb=265cf0efa7ab3296b3fc4917b863d7b09e3d8bb4;hp=a1abc9ed6a05cd597da730711c37493045e1d86e;hpb=8e59a99e0ade75dec434f246f52e8b3f7393f359;p=jquery.git diff --git a/src/data.js b/src/data.js index a1abc9e..21f0e3a 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; },