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/04/02 20:52:59 UTC
svn commit: r524918 -
/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html
Author: mturyn
Date: Mon Apr 2 13:52:58 2007
New Revision: 524918
URL: http://svn.apache.org/viewvc?view=rev&rev=524918
Log:
Separated "debugList" and "debug" parameters, because sometimes one needs to have a specific list of classes to debug-load over and above loading "all" of them---classes so auto-loaded after the document's <HEAD/> is set don't show up, so we have to do them by hand.
Modified:
incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html
Modified: incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html?view=diff&rev=524918&r1=524917&r2=524918
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html (original)
+++ incubator/xap/trunk/samples/WebContent/examples/widgets/widget_loader.html Mon Apr 2 13:52:58 2007
@@ -51,11 +51,21 @@
window.debug_config = new Object() ;
if(debugP=="all"||debugP=="true"){
window.debug_config._debugAll=true ;
- } else {
- window.debug_config._debugList = debugP.split(",") ;
- }
- }
+ }
+ }
+ // Despite the name "all", sometimes it's necessary
+ // to explictly include some files that otherwise
+ // wouldn't have been loaded until after the <head/>
+ // element had been set, at which point adding the
+ // <script/> tag doesn't seem to do much:
+ var debugList = getGetVar("debugList") ;
+ if( debugList ){
+ if( !window.debug_config ){
+ window.debug_config = new Object() ;
+ }
+ window.debug_config._debugList = debugList.split(",") ;
+ }
</script>