File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
24
24
$ . ui = $ . ui || { } ;
25
25
26
- var cachedScrollbarWidth ,
26
+ var cachedScrollbarWidth , supportsOffsetFractions ,
27
27
max = Math . max ,
28
28
abs = Math . abs ,
29
29
round = Math . round ,
@@ -236,7 +236,7 @@ $.fn.position = function( options ) {
236
236
position . top += myOffset [ 1 ] ;
237
237
238
238
// if the browser doesn't support fractions, then round for consistent results
239
- if ( ! $ . support . offsetFractions ) {
239
+ if ( ! supportsOffsetFractions ) {
240
240
position . left = round ( position . left ) ;
241
241
position . top = round ( position . top ) ;
242
242
}
@@ -501,7 +501,7 @@ $.ui.position = {
501
501
div . style . cssText = "position: absolute; left: 10.7432222px;" ;
502
502
503
503
offsetLeft = $ ( div ) . offset ( ) . left ;
504
- $ . support . offsetFractions = offsetLeft > 10 && offsetLeft < 11 ;
504
+ supportsOffsetFractions = offsetLeft > 10 && offsetLeft < 11 ;
505
505
506
506
testElement . innerHTML = "" ;
507
507
testElementParent . removeChild ( testElement ) ;
You can’t perform that action at this time.
0 commit comments