aboutsummaryrefslogtreecommitdiffstats
path: root/ui/position.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-04-03 10:54:52 -0400
committerScott González <scott.gonzalez@gmail.com>2014-04-03 10:54:52 -0400
commitbaf6bc5c27003468052d81589855b6587f004d94 (patch)
treecd3ec158f5468a1c7cc9ba8712b56e151303c4f0 /ui/position.js
parentd24cd35f0cf211a5fed379532f1d9c762f39b9e2 (diff)
downloadjquery-ui-baf6bc5c27003468052d81589855b6587f004d94.tar.gz
jquery-ui-baf6bc5c27003468052d81589855b6587f004d94.zip
Position: Don't create `$.support.offsetFractions`
Diffstat (limited to 'ui/position.js')
-rw-r--r--ui/position.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/position.js b/ui/position.js
index a6f210dc0..53e5a1d9d 100644
--- a/ui/position.js
+++ b/ui/position.js
@@ -23,7 +23,7 @@
$.ui = $.ui || {};
-var cachedScrollbarWidth,
+var cachedScrollbarWidth, supportsOffsetFractions,
max = Math.max,
abs = Math.abs,
round = Math.round,
@@ -236,7 +236,7 @@ $.fn.position = function( options ) {
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 );
}
@@ -501,7 +501,7 @@ $.ui.position = {
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 );