aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-03-02 10:51:31 -0500
committerjeresig <jeresig@gmail.com>2010-03-02 10:51:31 -0500
commit5c111a028a2c86f2392d987951db3a980900f1bd (patch)
tree2721cb06024290df218686eef2efbe4ece1be40b /test
parent86ace44fbbdfe90d231877d6d3bb3b85a81782b4 (diff)
downloadjquery-5c111a028a2c86f2392d987951db3a980900f1bd.tar.gz
jquery-5c111a028a2c86f2392d987951db3a980900f1bd.zip
We no longer support globally-triggered events on plain objects. This is a trade-off to having good garbage collection on the objects.
Diffstat (limited to 'test')
-rw-r--r--test/unit/event.js17
1 files changed, 4 insertions, 13 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index a9c88153f..b224070e3 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -1715,24 +1715,15 @@ test("delegate with submit", function() {
});
test("Non DOM element events", function() {
- expect(3);
-
- jQuery({})
- .bind('nonelementglobal', function(e) {
- ok( true, "Global event on non-DOM annonymos object triggered" );
- });
+ expect(1);
var o = {};
- jQuery(o)
- .bind('nonelementobj', function(e) {
- ok( true, "Event on non-DOM object triggered" );
- }).bind('nonelementglobal', function() {
- ok( true, "Global event on non-DOM object triggered" );
- });
+ jQuery(o).bind('nonelementobj', function(e) {
+ ok( true, "Event on non-DOM object triggered" );
+ });
jQuery(o).trigger('nonelementobj');
- jQuery.event.trigger('nonelementglobal');
});
/*