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:
9ad7c21
)
Re-work the document scoping.
author
jeresig
<jeresig@gmail.com>
Wed, 22 Sep 2010 12:08:45 +0000
(08:08 -0400)
committer
jeresig
<jeresig@gmail.com>
Wed, 22 Sep 2010 12:08:45 +0000
(08:08 -0400)
src/core.js
patch
|
blob
|
history
src/intro.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
53d69ca
..
7bc0fb9
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-12,9
+12,6
@@
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,
diff --git
a/src/intro.js
b/src/intro.js
index
433f8bc
..
cb15705
100644
(file)
--- a/
src/intro.js
+++ b/
src/intro.js
@@
-15,3
+15,5
@@
*/
(function( window, undefined ) {
+// Use the correct document accordingly with window argument (sandbox)
+var document = window.document;