incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r547744 - in /incubator/xap/trunk/codebase/src/xap: Xap.js taghandling/PluginDocumentHandler.js
Date Fri, 15 Jun 2007 17:12:50 GMT
Author: mturyn
Date: Fri Jun 15 10:12:48 2007
New Revision: 547744

URL: http://svn.apache.org/viewvc?view=rev&rev=547744
Log:
Resolve some loading issues.

Modified:
    incubator/xap/trunk/codebase/src/xap/Xap.js
    incubator/xap/trunk/codebase/src/xap/taghandling/PluginDocumentHandler.js

Modified: incubator/xap/trunk/codebase/src/xap/Xap.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/Xap.js?view=diff&rev=547744&r1=547743&r2=547744
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/Xap.js (original)
+++ incubator/xap/trunk/codebase/src/xap/Xap.js Fri Jun 15 10:12:48 2007
@@ -64,6 +64,20 @@
  * @type xap.application.Application
  */
 Xap.createApplication = function(applicationConfig) {
+
+	// override dojo.hostenv.getBaseScriptUri() to return
+	// a blank string that allows our mapping [plugin name to path] to work
+	if(dojo.hostenv.getBaseScriptUri != Xap.dojo_hostenv_getBaseScriptUri) {
+		dojo.hostenv.getBaseScriptUri = Xap.dojo_hostenv_getBaseScriptUri;
+	}
+	
+	// We still want dojo.uri.dojoUri() function to work as before, so override that as well.
+	// The change above also affects dojo.uri.moduleUri() function, but that 
+	// function doees not seem to be used anywhere
+	if(dojo.uri.dojoUri != Xap.dojo_uri_dojoUri) {
+		dojo.uri.dojoUri = Xap.dojo_uri_dojoUri;
+	}	
+	
     Xap.require("xap.application.Application");
 	var application = new xap.application.Application(applicationConfig);	
 	

Modified: incubator/xap/trunk/codebase/src/xap/taghandling/PluginDocumentHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/taghandling/PluginDocumentHandler.js?view=diff&rev=547744&r1=547743&r2=547744
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/taghandling/PluginDocumentHandler.js (original)
+++ incubator/xap/trunk/codebase/src/xap/taghandling/PluginDocumentHandler.js Fri Jun 15 10:12:48
2007
@@ -58,20 +58,6 @@
 	
 	//we had better be the first listener on the document!
 	doc.addStructureChangeListener( this );
-	
-	// override dojo.hostenv.getBaseScriptUri() to return
-	// a blank string that allows our mapping [plugin name to path] to work
-	if(dojo.hostenv.getBaseScriptUri != Xap.dojo_hostenv_getBaseScriptUri) {
-		dojo.hostenv.getBaseScriptUri = Xap.dojo_hostenv_getBaseScriptUri;
-	}
-	
-	// We still want dojo.uri.dojoUri() function to work as before, so override that as well.
-	// The change above also affects dojo.uri.moduleUri() function, but that 
-	// function doees not seem to be used anywhere
-	if(dojo.uri.dojoUri != Xap.dojo_uri_dojoUri) {
-		dojo.uri.dojoUri = Xap.dojo_uri_dojoUri;
-	}	
-	
 };
 
 /** @private */



Mime
View raw message