aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-11-05 11:28:04 -0500
committerScott González <scott.gonzalez@gmail.com>2012-11-05 11:28:04 -0500
commitc67727582148d1d4ed657b654eff5da914c7ac97 (patch)
tree07d50ecdb97c66b22d06b371526a155d129270a0 /ui/jquery.ui.core.js
parenta8de99c791ae24e558920e1756fb7d0bf9dfc166 (diff)
downloadjquery-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.js6
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() {