aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/offset.js b/src/offset.js
index 563c6e8cd..f1d64d6a2 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -7,12 +7,12 @@ define( [
"./css/curCSS",
"./css/addGetHookIf",
"./css/support",
-
+ "./var/isWindow",
"./core/init",
"./css",
"./selector" // contains
], function( jQuery, access, document, documentElement, rnumnonpx,
- curCSS, addGetHookIf, support ) {
+ curCSS, addGetHookIf, support, isWindow ) {
"use strict";
@@ -186,7 +186,7 @@ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(
// Coalesce documents and windows
var win;
- if ( jQuery.isWindow( elem ) ) {
+ if ( isWindow( elem ) ) {
win = elem;
} else if ( elem.nodeType === 9 ) {
win = elem.defaultView;