Commit 24e416dc authored by Dave Methvin's avatar Dave Methvin

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.
parent 35bc30cd
...@@ -101,9 +101,8 @@ jQuery.extend({ ...@@ -101,9 +101,8 @@ jQuery.extend({
thisCache[ jQuery.camelCase( name ) ] = data; thisCache[ jQuery.camelCase( name ) ] = data;
} }
// TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should // Users should not attempt to inspect the internal events object using jQuery.data,
// not attempt to inspect the internal events object using jQuery.data, as this // it is undocumented and subject to change. But does anyone listen? No.
// internal data object is undocumented and subject to change.
if ( name === "events" && !thisCache[name] ) { if ( name === "events" && !thisCache[name] ) {
return thisCache[ internalKey ] && thisCache[ internalKey ].events; return thisCache[ internalKey ] && thisCache[ internalKey ].events;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment