Skip to content

Commit 1cfdecf

Browse files
committed
Use Object.defineProperies as the IE8 detect
Also fix support comment.
1 parent 0ead3a8 commit 1cfdecf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/event.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,9 @@ test( "global events not on document", function() {
799799
});
800800
});
801801

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

806806
test( "jQuery.event.handle", function() {
807807
expect( 2 );

0 commit comments

Comments
 (0)