From c67727582148d1d4ed657b654eff5da914c7ac97 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 5 Nov 2012 11:28:04 -0500 Subject: Core: Simplify IE check now that we don't care about IE6. --- ui/jquery.ui.core.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index fadd42cad..26a956b1a 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -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() { -- cgit v1.2.3