diff options
Diffstat (limited to 'src/offset.js')
-rw-r--r-- | src/offset.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/offset.js b/src/offset.js index 18a5dc038..d69a451ca 100644 --- a/src/offset.js +++ b/src/offset.js @@ -1,9 +1,10 @@ define([ "./core", "./var/strundefined", + "./core/access", "./css", "./selector" // contains -], function( jQuery, strundefined ) { +], function( jQuery, strundefined, access ) { var docElem = window.document.documentElement; @@ -160,7 +161,7 @@ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( me var top = /Y/.test( prop ); jQuery.fn[ method ] = function( val ) { - return jQuery.access( this, function( elem, method, val ) { + return access( this, function( elem, method, val ) { var win = getWindow( elem ); if ( val === undefined ) { |