aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/exports.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exports.js b/src/exports.js
index db554347d..37b797075 100644
--- a/src/exports.js
+++ b/src/exports.js
@@ -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;
}