diff options
-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() { |