diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-10 11:45:48 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-10 11:45:48 -0400 |
commit | a3f1a34d3b997550a5a8cf4c630e6580cd37cde5 (patch) | |
tree | cd8ff7023ca59a52fa65d3b50e67da76147ee105 /ui/jquery.ui.core.js | |
parent | fa62f21e5ad09e5368efc3079859730e23a7123b (diff) | |
download | jquery-ui-a3f1a34d3b997550a5a8cf4c630e6580cd37cde5.tar.gz jquery-ui-a3f1a34d3b997550a5a8cf4c630e6580cd37cde5.zip |
Remove use of $.browser; add $.ui.ie and $.ui.ie6 temporarily.
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r-- | ui/jquery.ui.core.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index bb9411dc9..e569eea42 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -69,7 +69,7 @@ $.fn.extend({ scrollParent: function() { var scrollParent; - if (($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { + if (($.ui.ie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { scrollParent = this.parents().filter(function() { return (/(relative|absolute|fixed)/).test($.css(this,'position')) && (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x')); }).eq(0); @@ -258,6 +258,12 @@ $(function() { // deprecated +(function() { + var uaMatch = /msie ([\w.]+)/.exec( navigator.userAgent.toLowerCase() ) || []; + $.ui.ie = uaMatch.length ? true : false; + $.ui.ie6 = parseFloat( uaMatch[ 1 ], 10 ) === 6; +})(); + $.fn.extend({ disableSelection: function() { return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) + |