mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixes #13566. If there is a window object, and it has a document property, it might be the window we want, so define jQuery and $. Thanks to @dcherman for saving us from that embarrassment!
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
37c801eda5
commit
6358da8aa3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user