Skip to content

Commit

Permalink
Use Object.defineProperies as the IE8 detect
Browse files Browse the repository at this point in the history
Also fix support comment.
  • Loading branch information
dmethvin committed Jun 10, 2014
1 parent 0ead3a8 commit 1cfdecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,9 +799,9 @@ test( "global events not on document", function() {
});
});

// Support: IE<8
// Support: IE<=8
// Need ES5 Object.defineProperty() to catch property access
if ( jQuery.event.dispatch && window.addEventListener ) {
if ( jQuery.event.dispatch && Object.defineProperties ) {

test( "jQuery.event.handle", function() {
expect( 2 );
Expand Down

0 comments on commit 1cfdecf

Please sign in to comment.