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.
This commit is contained in:
parent
c470db6950
commit
98d83ef85f
2 changed files with 26 additions and 13 deletions
|
@ -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("<table><tr><td>trigger</td></tr></table>").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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue