OpenLayers OpenLayers

Changeset 1319

Show
Ignore:
Timestamp:
08/21/06 15:18:47 (2 years ago)
Author:
crschmidt
Message:

unregister allows you to specify a function. remove does not.
I can't believe no one caught this before... (Fixes #192.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.0/lib/OpenLayers/Control/PanZoomBar.js

    r1306 r1319  
    198198        if (this.zoomStart) { 
    199199            this.div.style.cursor="default"; 
    200             this.map.events.remove("mousemove"); 
    201             this.map.events.remove("mouseup"); 
     200            this.map.events.unregister("mouseup", this, this.passEventToSlider); 
     201            this.map.events.unregister("mousemove", this, this.passEventToSlider); 
    202202            var deltaY = this.zoomStart.y - evt.xy.y 
    203203            this.map.zoomTo(this.map.zoom + Math.round(deltaY/this.zoomStopHeight));