]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Simplify IE check now that we don't care about IE6.
authorScott González <scott.gonzalez@gmail.com>
Mon, 5 Nov 2012 16:28:04 +0000 (11:28 -0500)
committerScott González <scott.gonzalez@gmail.com>
Mon, 5 Nov 2012 16:28:04 +0000 (11:28 -0500)
ui/jquery.ui.core.js

index fadd42cad44f93b3bf6a5c4df3e7ee5e6ae75af5..26a956b1ae3aa1035d9dee6a18f423f72f9812e1 100644 (file)
@@ -235,11 +235,7 @@ $.support.selectstart = "onselectstart" in document.createElement( "div" );
 
 
 // deprecated
-
-(function() {
-       var uaMatch = /msie ([\w.]+)/.exec( navigator.userAgent.toLowerCase() ) || [];
-       $.ui.ie = uaMatch.length ? true : false;
-})();
+$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
 
 $.fn.extend({
        disableSelection: function() {