Permalink
Browse files

removes global reference to document and limits its use in actual code

  • Loading branch information...
1 parent a98e944 commit a876184cefcb5955f5ed10684d8bf99aaecb3a1d @jaubourg committed Sep 25, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 build/intro.js
  2. +1 −1 build/outro.js
  3. +1 −1 src/ajax/css.js
View
@@ -6,4 +6,4 @@
*
* Date: @DATE
*/
-(function( jQuery, document, undefined ) {
+(function( jQuery, undefined ) {
View
@@ -1 +1 @@
-})( jQuery, document );
+})( jQuery );
View
@@ -1,4 +1,4 @@
-var cssHead = document.head || document.getElementsByTagName( "head" )[ 0 ] || document.documentElement,
+var cssHead = document.head || jQuery( "head" )[ 0 ] || document.documentElement,
cssEmptyURL = "data:text/css,",
cssNeedsPolling = jQuery.Deferred(function( defer ) {
var onload = cssLoad( { url: cssEmptyURL }, false, function() {

0 comments on commit a876184

Please sign in to comment.