[Commits] r1185 - apps/opengeo/geoexplorer/trunk/src/script/app
commits at geoext.org
commits at geoext.org
Wed Jul 1 02:22:55 CEST 2009
Author: tschaub
Date: 2009-07-01 02:22:55 +0200 (Wed, 01 Jul 2009)
New Revision: 1185
Modified:
apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js
Log:
We have to set the layer title in two places because the record is not yet synchronized with the layer in a store.
Modified: apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js 2009-07-01 00:15:00 UTC (rev 1184)
+++ apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js 2009-07-01 00:22:55 UTC (rev 1185)
@@ -678,7 +678,14 @@
// set layer title from config
if (conf.title) {
- layer.name = conf.title;
+ /**
+ * Because the layer title data is duplicated, we have
+ * to set it in both places. After records have been
+ * added to the store, the store handles this
+ * synchronization.
+ */
+ layer.setName(conf.title);
+ record.set("title", conf.title);
}
record.set("background", ("background" in conf ?
More information about the Commits
mailing list