});
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');
});
/*