File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -173,13 +173,10 @@ var /** holds major version number for IE or NaN for real browsers */
173
173
uid = 0 ;
174
174
175
175
/**
176
- * IE 11 changed the format of the UserAgent string.
177
- * See http://msdn.microsoft.com/en-us/library/ms537503 .aspx
176
+ * documentMode is an IE-only property
177
+ * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85) .aspx
178
178
*/
179
- msie = int ( ( / m s i e ( \d + ) / . exec ( lowercase ( navigator . userAgent ) ) || [ ] ) [ 1 ] ) ;
180
- if ( isNaN ( msie ) ) {
181
- msie = int ( ( / t r i d e n t \/ .* ; r v : ( \d + ) / . exec ( lowercase ( navigator . userAgent ) ) || [ ] ) [ 1 ] ) ;
182
- }
179
+ msie = document . documentMode ;
183
180
184
181
185
182
/**
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
( function ( ) {
4
- var msie = parseInt ( ( / m s i e ( \d + ) / . exec ( navigator . userAgent . toLowerCase ( ) ) || [ ] ) [ 1 ] , 10 ) ;
4
+ /**
5
+ * documentMode is an IE-only property
6
+ * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx
7
+ */
8
+ msie = document . documentMode ;
5
9
6
10
/**
7
11
* Triggers a browser event. Attempts to choose the right event if one is
You can’t perform that action at this time.
0 commit comments