diff options
author | Shashanka Nataraj <shashankan.10@gmail.com> | 2017-06-23 04:14:43 +0000 |
---|---|---|
committer | Timmy Willison <4timmywil@gmail.com> | 2017-07-10 12:00:27 -0400 |
commit | c18d608537d8945de6c5855a9475657177fa74ac (patch) | |
tree | 1d1dee3376abc5218d3c0da26f540003d9b70f05 /src/dimensions.js | |
parent | 490db839fb08a9b461e77dbe0138c7e6045aacd8 (diff) | |
download | jquery-c18d608537d8945de6c5855a9475657177fa74ac.tar.gz jquery-c18d608537d8945de6c5855a9475657177fa74ac.zip |
Core: Deprecate jQuery.isWindow
Fixes gh-3629
Close gh-3702
Diffstat (limited to 'src/dimensions.js')
-rw-r--r-- | src/dimensions.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dimensions.js b/src/dimensions.js index 46e7b1c46..2a2c0391d 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -1,8 +1,9 @@ define( [ "./core", "./core/access", + "./var/isWindow", "./css" -], function( jQuery, access ) { +], function( jQuery, access, isWindow ) { "use strict"; @@ -19,7 +20,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { return access( this, function( elem, type, value ) { var doc; - if ( jQuery.isWindow( elem ) ) { + if ( isWindow( elem ) ) { // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729) return funcName.indexOf( "outer" ) === 0 ? |