git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Scope 'document' locally (also useful for sandboxing). Patch from Andrea Giammarchi...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
cab3b54
..
ee4ac70
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-12,6
+12,9
@@
var jQuery = function( selector, context ) {
// Map over the $ in case of overwrite
_$ = window.$,
+ // Use the correct document accordingly with window argument (sandbox)
+ document = window.document,
+
// A central reference to the root jQuery(document)
rootjQuery,