Skip to content

Commit c677275

Browse files
committed
Core: Simplify IE check now that we don't care about IE6.
1 parent a8de99c commit c677275

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ui/jquery.ui.core.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,7 @@ $.support.selectstart = "onselectstart" in document.createElement( "div" );
235235

236236

237237
// deprecated
238-
239-
(function() {
240-
var uaMatch = /msie ([\w.]+)/.exec( navigator.userAgent.toLowerCase() ) || [];
241-
$.ui.ie = uaMatch.length ? true : false;
242-
})();
238+
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
243239

244240
$.fn.extend({
245241
disableSelection: function() {

0 commit comments

Comments
 (0)