$.ui = $.ui || {};
-var cachedScrollbarWidth,
+var cachedScrollbarWidth, supportsOffsetFractions,
max = Math.max,
abs = Math.abs,
round = Math.round,
position.top += myOffset[ 1 ];
// if the browser doesn't support fractions, then round for consistent results
- if ( !$.support.offsetFractions ) {
+ if ( !supportsOffsetFractions ) {
position.left = round( position.left );
position.top = round( position.top );
}
div.style.cssText = "position: absolute; left: 10.7432222px;";
offsetLeft = $( div ).offset().left;
- $.support.offsetFractions = offsetLeft > 10 && offsetLeft < 11;
+ supportsOffsetFractions = offsetLeft > 10 && offsetLeft < 11;
testElement.innerHTML = "";
testElementParent.removeChild( testElement );