From 24e416dca36df4b182a612dba37f8b6cdaa25916 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Wed, 26 Oct 2011 17:04:15 -0400 Subject: [PATCH] Fix #10588. For now, event voyeurism only merits the look of disapproval. If you are using `.data("events")` we would like to know how we can provide a documented interface that satisfies the need. --- src/data.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/data.js b/src/data.js index 02f96a849..24011c6b7 100644 --- a/src/data.js +++ b/src/data.js @@ -101,9 +101,8 @@ jQuery.extend({ thisCache[ jQuery.camelCase( 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. + // Users should not attempt to inspect the internal events object using jQuery.data, + // it is undocumented and subject to change. But does anyone listen? No. if ( name === "events" && !thisCache[name] ) { return thisCache[ internalKey ] && thisCache[ internalKey ].events; } -- 2.39.5