]> source.dussan.org Git - jquery.git/commitdiff
Fixes #13566. If there is a window object, and it has a document property, it might...
authorRick Waldron <waldron.rick@gmail.com>
Thu, 4 Apr 2013 21:27:15 +0000 (17:27 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Thu, 4 Apr 2013 21:27:15 +0000 (17:27 -0400)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
src/exports.js

index db554347d27bafcb09dd031e71f4ba489577b879..37b797075b6911dff52bc161dc71d89dabfabf7d 100644 (file)
@@ -17,7 +17,8 @@ if ( typeof module === "object" && typeof module.exports === "object" ) {
        }
 }
 
-// If there is a window object, define a jQuery and $
-if ( typeof window === "object" ) {
+// If there is a window object, that at least has a document property,
+// define jQuery and $ identifiers
+if ( typeof window === "object" && typeof window.document === "object" ) {
        window.jQuery = window.$ = jQuery;
 }