Changeset 1352
- Timestamp:
- 08/24/06 01:49:02 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.0/lib/OpenLayers/Control/MouseToolbar.js
r1350 r1352 181 181 switchModeTo: function(mode) { 182 182 if (mode != this.mode) { 183 if (this.mode ) {183 if (this.mode && this.buttons[this.mode]) { 184 184 OpenLayers.Util.modifyAlphaImageDiv(this.buttons[this.mode], null, null, null, this.buttons[this.mode].imgLocation); 185 185 } … … 194 194 } 195 195 this.mode = mode; 196 OpenLayers.Util.modifyAlphaImageDiv(this.buttons[mode], null, null, null, this.buttons[mode].activeImgLocation); 196 if (this.buttons[mode]) { 197 OpenLayers.Util.modifyAlphaImageDiv(this.buttons[mode], null, null, null, this.buttons[mode].activeImgLocation); 198 } 197 199 } 198 200 },
