You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2007/03/12 21:05:17 UTC
svn commit: r517393 - /incubator/xap/trunk/codebase/src/xap/Xap.js
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;