Skip to content

Commit

Permalink
Fix #10588. For now, event voyeurism only merits the look of disappro…
Browse files Browse the repository at this point in the history
…val.

If you are using `.data("events")` we would like to know how we can provide a documented interface that satisfies the need.
  • Loading branch information
dmethvin committed Oct 26, 2011
1 parent 35bc30c commit 24e416d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/data.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 24e416d

Please sign in to comment.