[fusion-commits] r1540 - trunk/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Sep 18 08:23:49 EDT 2008


Author: pagameba
Date: 2008-09-18 08:23:49 -0400 (Thu, 18 Sep 2008)
New Revision: 1540

Modified:
   trunk/lib/ApplicationDefinition.js
Log:
Close #72. Only create widgets in a container if the container exists.

Modified: trunk/lib/ApplicationDefinition.js
===================================================================
--- trunk/lib/ApplicationDefinition.js	2008-09-16 20:05:23 UTC (rev 1539)
+++ trunk/lib/ApplicationDefinition.js	2008-09-18 12:23:49 UTC (rev 1540)
@@ -705,8 +705,8 @@
             if ($(this.name)) {
                 container = new Jx.Toolbar({parent: this.name, position: this.position});
                 $(this.name).container = container;
+                this.createWidgets(widgetSet, container);
             }
-            this.createWidgets(widgetSet, container);
         } else if (this.type == 'Splitterbar') {
             if ($(this.name)) {
                 container = new Jx.Splitter(this.name, {splitInto: this.items.length});
@@ -714,8 +714,8 @@
                     container.elements[i].id = this.name + '_' + i;
                 }
                 $(this.name).container = container;
+                this.createWidgets(widgetSet, container);
             }
-            this.createWidgets(widgetSet, container);
         }
         if (container && container.domObj.jxLayout) {
             container.domObj.jxLayout.resize({forceResize: true});



More information about the fusion-commits mailing list