Core: Deprecate jQuery.isWindow

Fixes gh-3629
Close gh-3702
This commit is contained in:
Shashanka Nataraj
2017-06-23 04:14:43 +00:00
committed by Timmy Willison
parent 490db839fb
commit c18d608537
9 changed files with 45 additions and 40 deletions

View File

@@ -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;