diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-11-05 11:28:04 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-11-05 11:28:04 -0500 |
commit | c67727582148d1d4ed657b654eff5da914c7ac97 (patch) | |
tree | 07d50ecdb97c66b22d06b371526a155d129270a0 /ui/jquery.ui.core.js | |
parent | a8de99c791ae24e558920e1756fb7d0bf9dfc166 (diff) | |
download | jquery-ui-c67727582148d1d4ed657b654eff5da914c7ac97.tar.gz jquery-ui-c67727582148d1d4ed657b654eff5da914c7ac97.zip |
Core: Simplify IE check now that we don't care about IE6.
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r-- | ui/jquery.ui.core.js | 6 |
1 files changed, 1 insertions, 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() { |