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/var/isWindow.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/var/isWindow.js')
-rw-r--r-- | src/var/isWindow.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/var/isWindow.js b/src/var/isWindow.js new file mode 100644 index 000000000..2ba1168dd --- /dev/null +++ b/src/var/isWindow.js @@ -0,0 +1,8 @@ +define( function() { + "use strict"; + + return function isWindow( obj ) { + return obj != null && obj === obj.window; + }; + +} ); |