forgot that these declarations are still only statically initialized. even though the chance of somebody *modifying* one of these strings (rather than just replacing it) is rather low... we might as well do things the right way
git-svn-id: http://svn.openlayers.org/trunk/openlayers@228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -22,10 +22,10 @@ OpenLayers.Control.LayerSwitcher.prototype =
|
||||
Object.extend( new OpenLayers.Control(), {
|
||||
|
||||
/** @type String */
|
||||
activeColor: OpenLayers.Control.LayerSwitcher.ACTIVE_COLOR,
|
||||
activeColor: "",
|
||||
|
||||
/** @type String */
|
||||
nonActiveColor: OpenLayers.Control.LayerSwitcher.NONACTIVE_COLOR,
|
||||
nonActiveColor: "",
|
||||
|
||||
|
||||
/**
|
||||
@@ -33,6 +33,8 @@ OpenLayers.Control.LayerSwitcher.prototype =
|
||||
*/
|
||||
initialize: function() {
|
||||
OpenLayers.Control.prototype.initialize.apply(this, arguments);
|
||||
this.activeColor = OpenLayers.Control.LayerSwitcher.ACTIVE_COLOR;
|
||||
this.nonActiveColor = OpenLayers.Control.LayerSwitcher.NONACTIVE_COLOR;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user