This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 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 */
173173 uid = 0 ;
174174
175175/**
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
178178 */
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 ;
183180
184181
185182/**
Original file line number Diff line number Diff line change 11'use strict' ;
22
33( 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 ;
59
610 /**
711 * 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