Changeset 4100
- Timestamp:
- 08/29/07 00:21:17 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Handler/MouseWheel.js (modified) (1 diff)
- trunk/openlayers/tests/Handler/test_MouseWheel.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Handler/MouseWheel.js
r4042 r4100 47 47 */ 48 48 destroy: function() { 49 this.deactivate();49 OpenLayers.Handler.prototype.destroy.apply(this, arguments); 50 50 this.wheelListener = null; 51 OpenLayers.Handler.prototype.destroy.apply(this, arguments);52 51 }, 53 52 trunk/openlayers/tests/Handler/test_MouseWheel.html
r4083 r4100 118 118 "deactivate returns true if the handler was active already"); 119 119 } 120 function test_handler_MouseWheel_destroy(t) { 121 t.plan(1); 122 var control = new OpenLayers.Control(); 123 var handler = new OpenLayers.Handler.MouseWheel(control); 124 handler.deactivate = function() { 125 t.ok(true, "Deactivate called one time."); 126 } 127 handler.destroy(); 128 } 120 129 121 130
