From 19b5d9e874bbd97d03d9e0561a70711e2bf91fcb Mon Sep 17 00:00:00 2001 From: jeresig Date: Wed, 22 Sep 2010 08:08:45 -0400 Subject: [PATCH] Re-work the document scoping. --- src/core.js | 3 --- src/intro.js | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core.js b/src/core.js index 53d69ca86..7bc0fb909 100644 --- 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 433f8bc8b..cb15705a6 100644 --- 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; -- 2.39.5