Ticket #578: toolbar.patch
| File toolbar.patch, 0.8 kB (added by euzuro, 2 years ago) |
|---|
-
lib/OpenLayers/Control/MouseToolbar.js
old new 57 57 58 58 return this.div; 59 59 }, 60 61 /** 62 * 63 */ 64 destroy: function() { 65 for( var btnId in this.buttons) { 66 var btn = this.buttons[btnId]; 67 btn.map = null; 68 btn.events.destroy(); 69 } 70 OpenLayers.Control.MouseDefaults.prototype.destroy.apply(this, 71 arguments); 72 }, 60 73 61 74 _addButton:function(id, img, activeImg, xy, sz, title) { 62 75 var imgLocation = OpenLayers.Util.getImagesLocation() + img;
