diff options
author | Colin Snover <github.com@zetafleet.com> | 2010-10-11 23:35:18 -0500 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2010-10-11 23:35:18 -0500 |
commit | ff6ceadbfd470463e63708413eb5a55bd7e90c69 (patch) | |
tree | de0a35901e93405d8272657ce14042af47c3194f /test | |
parent | 6245ecb2b91cca73f66dc0543beb6626c138bcfc (diff) | |
download | jquery-ff6ceadbfd470463e63708413eb5a55bd7e90c69.tar.gz jquery-ff6ceadbfd470463e63708413eb5a55bd7e90c69.zip |
Use a key name less likely to result in collisions for events on plain JS objects. Fixes bug #7150.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index b093e8e71..b37b253a8 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -457,7 +457,7 @@ test("bind()/trigger()/unbind() on plain object", function() { ok( true, "Custom event run." ); }); - var events = jQuery(obj).data("events"); + var events = jQuery(obj).data("__events__"); ok( events, "Object has events bound." ); equals( typeof events, "function", "'events' expando is a function on plain objects." ); equals( obj.test, undefined, "Make sure that test event is not on the plain object." ); |