Reviewers: conroy,

Description:
Update some references to document to be $doc


Please review this at http://gwt-code-reviews.appspot.com/1112801/show

Affected files:
M dev/core/src/com/google/gwt/core/ext/linker/impl/installLocationIframe.js M dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptEarlyDownload.js
  M dev/core/src/com/google/gwt/core/ext/linker/impl/processMetas.js


Index: dev/core/src/com/google/gwt/core/ext/linker/impl/installLocationIframe.js
===================================================================
--- dev/core/src/com/google/gwt/core/ext/linker/impl/installLocationIframe.js (revision 9233) +++ dev/core/src/com/google/gwt/core/ext/linker/impl/installLocationIframe.js (working copy)
@@ -29,7 +29,7 @@
   scriptFrame.id = '__MODULE_NAME__';
scriptFrame.style.cssText = 'position:absolute; width:0; height:0; border:none; left: -1000px; top: -1000px; !important';
   scriptFrame.tabIndex = -1;
-  document.body.appendChild(scriptFrame);
+  $doc.body.appendChild(scriptFrame);

   frameDoc = scriptFrame.contentDocument;
   if (!frameDoc) {
Index: dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptEarlyDownload.js
===================================================================
--- dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptEarlyDownload.js (revision 9233) +++ dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptEarlyDownload.js (working copy)
@@ -32,7 +32,7 @@
   if (isBodyLoaded()) {
// if the body is loaded, then the tag to download the script can be added
     // in a non-destructive manner
-    var script = document.createElement('script');
+    var script = $doc.createElement('script');
     script.src = filename;
     $doc.getElementsByTagName('head')[0].appendChild(script);
   } else {
Index: dev/core/src/com/google/gwt/core/ext/linker/impl/processMetas.js
===================================================================
--- dev/core/src/com/google/gwt/core/ext/linker/impl/processMetas.js (revision 9233) +++ dev/core/src/com/google/gwt/core/ext/linker/impl/processMetas.js (working copy)
@@ -26,7 +26,7 @@
   var propertyErrorFunc;
   var onLoadErrorFunc;

-  var metas = document.getElementsByTagName('meta');
+  var metas = $doc.getElementsByTagName('meta');
   for (var i = 0, n = metas.length; i < n; ++i) {
     var meta = metas[i]
     , name = meta.getAttribute('name')


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to