]> source.dussan.org Git - jquery.git/commitdiff
Fix #10588. For now, event voyeurism only merits the look of disapproval.
authorDave Methvin <dave.methvin@gmail.com>
Wed, 26 Oct 2011 21:04:15 +0000 (17:04 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Wed, 26 Oct 2011 21:04:15 +0000 (17:04 -0400)
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

index 02f96a8495c7eb897030c5fcb324ec002f0e031d..24011c6b7ea8643d520d600aad7446f734917497 100644 (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;
                }