Permalink
Browse files

Position: Don't create `$.support.offsetFractions`

  • Loading branch information...
scottgonzalez committed Apr 3, 2014
1 parent d24cd35 commit baf6bc5c27003468052d81589855b6587f004d94
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/position.js
View
@@ -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 );

0 comments on commit baf6bc5

Please sign in to comment.