Re-work the document scoping.
authorjeresig <jeresig@gmail.com>
Wed, 22 Sep 2010 12:08:45 +0000 (08:08 -0400)
committerjeresig <jeresig@gmail.com>
Wed, 22 Sep 2010 12:08:45 +0000 (08:08 -0400)
src/core.js
src/intro.js

index 53d69ca..7bc0fb9 100644 (file)
@@ -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,
 
index 433f8bc..cb15705 100644 (file)
@@ -15,3 +15,5 @@
  */
 (function( window, undefined ) {
 
+// Use the correct document accordingly with window argument (sandbox)
+var document = window.document;