[fusion-commits] r1495 - sandbox/jx2/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Sep 4 13:43:15 EDT 2008
Author: madair
Date: 2008-09-04 13:43:15 -0400 (Thu, 04 Sep 2008)
New Revision: 1495
Modified:
sandbox/jx2/widgets/MapMenu.js
Log:
conversion of MapMenu.js
Modified: sandbox/jx2/widgets/MapMenu.js
===================================================================
--- sandbox/jx2/widgets/MapMenu.js 2008-09-04 17:42:46 UTC (rev 1494)
+++ sandbox/jx2/widgets/MapMenu.js 2008-09-04 17:43:15 UTC (rev 1495)
@@ -33,10 +33,9 @@
Fusion.Widget.MapMenu = OpenLayers.Class(Fusion.Widget, {
uiClass: Jx.Menu,
domObj: null,
- oMenu: null,
mapGroupData: null,
sRootFolder: '',
- aMenus : null,
+ aMenus: null,
initializeWidget: function(widgetTag) {
this.enable();
},
@@ -58,12 +57,13 @@
if (json.Folder) {
this.mapGroupData[mapGroup.maps[0].resourceId] = mapGroup;
} else {
+ var data = mapGroup;
var opt = {
label: mapGroup.mapId,
onClick: OpenLayers.Function.bind(this.switchMap, this, data)
};
var menuItem = new Jx.Menu.Item(opt);
- this.oMenu.add(menuItem);
+ this.uiObj.add(menuItem);
}
}
@@ -121,7 +121,7 @@
var menuItem = new Jx.Menu.Item(opt);
if (sPath == '') {
- this.oMenu.add(menuItem);
+ this.uiObj.add(menuItem);
}else {
this.aMenus[sPath].add(menuItem);
}
@@ -141,7 +141,7 @@
var opt = {label:aPath[i]};
var menu = new Jx.SubMenu(opt);
if (sParent == '') {
- this.oMenu.add(menu);
+ this.uiObj.add(menu);
} else {
this.aMenus[sParent].add(menu);
}
More information about the fusion-commits
mailing list