[Commits] r1292 - core/trunk/geoext/lib/GeoExt/widgets/tree

commits at geoext.org commits at geoext.org
Wed Jul 29 09:38:12 CEST 2009


Author: elemoine
Date: 2009-07-29 09:38:12 +0200 (Wed, 29 Jul 2009)
New Revision: 1292

Modified:
   core/trunk/geoext/lib/GeoExt/widgets/tree/LayerContainer.js
Log:
[1288] makes the LayerContainer.html tests fail, this is because the LayerContainer constructor passes undefined to the LayerLoader constructor if config.loader is undefined, r=ahocevar (closes #122)


Modified: core/trunk/geoext/lib/GeoExt/widgets/tree/LayerContainer.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/widgets/tree/LayerContainer.js	2009-07-29 06:49:52 UTC (rev 1291)
+++ core/trunk/geoext/lib/GeoExt/widgets/tree/LayerContainer.js	2009-07-29 07:38:12 UTC (rev 1292)
@@ -59,7 +59,7 @@
         });
         this.loader = config.loader instanceof GeoExt.tree.LayerLoader ?
             config.loader :
-            new GeoExt.tree.LayerLoader(Ext.applyIf(config.loader, {
+            new GeoExt.tree.LayerLoader(Ext.applyIf(config.loader || {}, {
                 store: config.layerStore
             }));
         



More information about the Commits mailing list