Fix for hosted.html breakage on non-Mozilla browsers.
Patch by: jgw
Review by: jat (Desk check)


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@4674 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html b/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html
index 154801d..0f45480 100644
--- a/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html
+++ b/dev/core/src/com/google/gwt/core/ext/linker/impl/hosted.html
@@ -12,6 +12,7 @@
   $stats({moduleName:moduleName,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});
 }
 
+var gwtOnLoad;
 var $hosted = "localhost:9997";
 var $legacyHosted = false;
 try {
@@ -23,7 +24,7 @@
 } catch(e) {
 }
 if ($legacyHosted) {
-  function gwtOnLoad(errFn, modName, modBase){
+  gwtOnLoad = function(errFn, modName, modBase) {
     $moduleName = modName;
     $moduleBase = modBase;
     if (!external.gwtOnLoad(window, modName, "1.6")) {
@@ -150,7 +151,7 @@
     }
   }
 
-  function gwtOnLoad(errFn, modName, modBase){
+  gwtOnLoad = function(errFn, modName, modBase){
     $moduleName = modName;
     $moduleBase = modBase;