incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r517393 - /incubator/xap/trunk/codebase/src/xap/Xap.js
Date Mon, 12 Mar 2007 21:05:17 GMT
Author: mturyn
Date: Mon Mar 12 14:05:16 2007
New Revision: 517393

URL: http://svn.apache.org/viewvc?view=rev&rev=517393
Log:
Backtracked debugging: it works a lot better by accumulating a list of files to load and then
laoding them just before the <HEAD/> element closes, rather than loading them as they
come.

Modified:
    incubator/xap/trunk/codebase/src/xap/Xap.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=517393&r1=517392&r2=517393
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/Xap.js (original)
+++ incubator/xap/trunk/codebase/src/xap/Xap.js Mon Mar 12 14:05:16 2007
@@ -181,9 +181,13 @@
 	try {
 		dojo.require.apply(dojo, arguments);
 		if (needToDebugLoad && !alreadyDebugLoaded ) {
-			// This adds a <script/> element to
-			// the <head/> contents:
-			xap.util.Debug._loadDebuggable(toLoad);
+			if( ! theDebugger.preloaded ){
+				theDebugger.addDebuggables(toLoad);
+			} else {
+				// We've already preloaded, so no 
+				// chance to do that now:
+				theDebugger.loadDebuggables([toLoad]) ;
+			}
 			Xap.ourDebugLoadClasses[toLoad] = true;
 		}
 		result = true;



Mime
View raw message