Skip to content

Commit baf6bc5

Browse files
committed
Position: Don't create $.support.offsetFractions
1 parent d24cd35 commit baf6bc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/position.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
$.ui = $.ui || {};
2525

26-
var cachedScrollbarWidth,
26+
var cachedScrollbarWidth, supportsOffsetFractions,
2727
max = Math.max,
2828
abs = Math.abs,
2929
round = Math.round,
@@ -236,7 +236,7 @@ $.fn.position = function( options ) {
236236
position.top += myOffset[ 1 ];
237237

238238
// if the browser doesn't support fractions, then round for consistent results
239-
if ( !$.support.offsetFractions ) {
239+
if ( !supportsOffsetFractions ) {
240240
position.left = round( position.left );
241241
position.top = round( position.top );
242242
}
@@ -501,7 +501,7 @@ $.ui.position = {
501501
div.style.cssText = "position: absolute; left: 10.7432222px;";
502502

503503
offsetLeft = $( div ).offset().left;
504-
$.support.offsetFractions = offsetLeft > 10 && offsetLeft < 11;
504+
supportsOffsetFractions = offsetLeft > 10 && offsetLeft < 11;
505505

506506
testElement.innerHTML = "";
507507
testElementParent.removeChild( testElement );

0 commit comments

Comments
 (0)