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 c5315f66870377579cb41a1c0d80389c02628a66
Showing with 3 additions and 0 deletions.
  1. +3 −0 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,

0 comments on commit c5315f6

Please sign in to comment.
You can’t perform that action at this time.