Author: [EMAIL PROTECTED]
Date: Tue Nov 11 07:53:27 2008
New Revision: 4016
Modified:
trunk/dev/core/src/com/google/gwt/core/linker/IFrameLinker.java
Log:
When creating a script tag to load code for runAsync,
create the tag in the same DOM element that the tag
will be attached to.
Suggested by: Cameron Braid
Review by: jlabanca, knorton
Modified: trunk/dev/core/src/com/google/gwt/core/linker/IFrameLinker.java
==============================================================================
--- trunk/dev/core/src/com/google/gwt/core/linker/IFrameLinker.java
(original)
+++ trunk/dev/core/src/com/google/gwt/core/linker/IFrameLinker.java Tue Nov
11 07:53:27 2008
@@ -85,7 +85,7 @@
out.print("function __gwtStartLoadingFragment(frag) {");
out.newlineOpt();
out.indentIn();
- out.print(" var script = $doc.createElement('script');");
+ out.print(" var script = document.createElement('script');");
out.newlineOpt();
out.print(" script.src = '" + strongName + "-' + frag + '" +
FRAGMENT_EXTENSION + "';");
out.print("
document.getElementsByTagName('head').item(0).appendChild(script);");
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---