File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ function $SnifferProvider() {
69
69
// IE8 compatible mode lies
70
70
( ! documentMode || documentMode > 7 ) ,
71
71
hasEvent : function ( event ) {
72
- // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
73
- // it . In particular the event is not fired when backspace or delete key are pressed or
74
- // when cut operation is performed.
75
- if ( event == 'input' && msie = = 9 ) return false ;
72
+ // IE9 (and some other versions in compatiblity mode) implements 'input' event but it's so
73
+ // fubared that we rather pretend that it doesn't have it . In particular the event is not fired
74
+ // when backspace or delete key are pressed or when cut operation is performed.
75
+ if ( event == 'input' && msie < = 9 ) return false ;
76
76
77
77
if ( isUndefined ( eventSupport [ event ] ) ) {
78
78
var divElm = document . createElement ( 'div' ) ;
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ describe('$sniffer', function() {
80
80
// IE9 implementation is fubared, so it's better to pretend that it doesn't have the support
81
81
mockDivElement = { oninput : noop } ;
82
82
83
- expect ( $sniffer . hasEvent ( 'input' ) ) . toBe ( ( msie = = 9 ) ? false : true ) ;
83
+ expect ( $sniffer . hasEvent ( 'input' ) ) . toBe ( ( msie < = 9 ) ? false : true ) ;
84
84
} ) ;
85
85
} ) ;
86
86
You can’t perform that action at this time.
0 commit comments