-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Closed
Description
The following test fails on IE 8 and only there:
Lines 2728 to 2750 in fc87a5c
| QUnit.test( ".off() removes the expando when there's no more data", function( assert ) { | |
| assert.expect( 2 ); | |
| var key, | |
| div = jQuery( "<div/>" ).appendTo( "#qunit-fixture" ); | |
| div.on( "click", false ); | |
| div.on( "custom", function() { | |
| assert.ok( true, "Custom event triggered" ); | |
| } ); | |
| div.trigger( "custom" ); | |
| div.off( "click custom" ); | |
| // Make sure the expando is gone | |
| for ( key in div[ 0 ] ) { | |
| if ( /^jQuery/.test( key ) ) { | |
| assert.strictEqual( | |
| div[ 0 ][ key ], undefined, | |
| "Expando was not removed when there was no more data" | |
| ); | |
| } | |
| } | |
| } ); |