From 98d83ef85f41fefb40a14eec24c6804c088bbeeb Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Thu, 7 Apr 2011 22:52:15 -0400 Subject: Fixes #8722. Remove try/catch used by #3533 to fix the IE Table Colon Blow bug, and instead check for colon in the event name. Thanks to daguej for scoping this out -- a colonoscopy you might say. --- test/unit/event.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/unit/event.js') diff --git a/test/unit/event.js b/test/unit/event.js index a26f54d2f..50bf4e174 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -2055,6 +2055,19 @@ test("focusin bubbles", function() { jQuery( "body" ).unbind( "focusin.focusinBubblesTest" ); }); +test("custom events with colons (#3533, #8272)", function() { + expect(1); + + var tab = jQuery("
trigger
").appendTo("body"); + try { + tab.trigger("back:forth"); + ok( true, "colon events don't throw" ); + } catch ( e ) { + ok( false, "colon events die" ); + }; + tab.remove(); + +}); (function(){ // This code must be run before DOM ready! -- cgit v1.2.3