aboutsummaryrefslogtreecommitdiffstats
path: root/src/var/isWindow.js
diff options
context:
space:
mode:
authorShashanka Nataraj <shashankan.10@gmail.com>2017-06-23 04:14:43 +0000
committerTimmy Willison <4timmywil@gmail.com>2017-07-10 12:00:27 -0400
commitc18d608537d8945de6c5855a9475657177fa74ac (patch)
tree1d1dee3376abc5218d3c0da26f540003d9b70f05 /src/var/isWindow.js
parent490db839fb08a9b461e77dbe0138c7e6045aacd8 (diff)
downloadjquery-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.js8
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;
+ };
+
+} );