[fusion-commits] r2149 - sandbox/jxlib-3.0/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Apr 16 16:26:34 EDT 2010
Author: madair
Date: 2010-04-16 16:26:33 -0400 (Fri, 16 Apr 2010)
New Revision: 2149
Modified:
sandbox/jxlib-3.0/widgets/LayerManager.js
sandbox/jxlib-3.0/widgets/SelectAttribute.js
Log:
removing unsafe method calls for IE
Modified: sandbox/jxlib-3.0/widgets/LayerManager.js
===================================================================
--- sandbox/jxlib-3.0/widgets/LayerManager.js 2010-04-16 20:08:00 UTC (rev 2148)
+++ sandbox/jxlib-3.0/widgets/LayerManager.js 2010-04-16 20:26:33 UTC (rev 2149)
@@ -93,7 +93,7 @@
//console.log("clear");
while (node.childNodes.length > 0) {
this.clear(node.childNodes[0]);
- node.destroy(node.childNodes[0]);
+ node.removeChild(node.childNodes[0]);
}
},
@@ -106,7 +106,7 @@
//console.log("draw");
if (this.mapList) {
this.clear(this.mapList);
- this.mapList.destroy();
+ //this.mapList.destroy();
this.mapList = null;
}
Modified: sandbox/jxlib-3.0/widgets/SelectAttribute.js
===================================================================
--- sandbox/jxlib-3.0/widgets/SelectAttribute.js 2010-04-16 20:08:00 UTC (rev 2148)
+++ sandbox/jxlib-3.0/widgets/SelectAttribute.js 2010-04-16 20:26:33 UTC (rev 2149)
@@ -66,7 +66,8 @@
* populate th list of seletable layers when the map loads
*/
listLayers: function() {
- this.layerList.empty();
+ //this.layerList.empty();
+ this.layerList.innerHTML = '';
var map = this.getMap().aMaps[0];
this.layerList.add(new Option('--select--',''),null);
for (var i=0; i<map.aLayers.length; ++i) {
@@ -101,7 +102,8 @@
setAttributeOptions: function(event) {
if (this.drawn) {
- this.propsList.empty();
+ //this.propsList.empty();
+ this.propsList.innerHTML = '';
var layer = this.layerList[this.layerList.selectedIndex].value;
var attrs = this.attrs[layer].propertyvalues;
var props = this.attrs[layer].propertynames;
More information about the fusion-commits
mailing list