Skip to content
Permalink
Browse files
Scope 'document' locally (also useful for sandboxing). Patch from And…
…rea Giammarchi. Fixes bug #4905.
  • Loading branch information
jeresig committed Jul 15, 2009
1 parent 7a04d1d commit c5315f6
Showing 1 changed file with 3 additions and 0 deletions.
@@ -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,

0 comments on commit c5315f6

Please sign in to comment.