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.
This commit is contained in:
Dave Methvin
2011-10-26 17:04:15 -04:00
parent 35bc30cd87
commit 24e416dca3

View File

@@ -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;
}