git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a04d1d
)
Scope 'document' locally (also useful for sandboxing). Patch from Andrea Giammarchi...
author
John Resig
<jeresig@gmail.com>
Wed, 15 Jul 2009 12:35:57 +0000
(12:35 +0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 15 Jul 2009 12:35:57 +0000
(12:35 +0000)
src/core.js
patch
|
blob
|
history
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,