Changeset 7597
- Timestamp:
- 07/29/08 19:40:32 (4 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control/Panel.js (modified) (2 diffs)
- trunk/openlayers/tests/Control/Panel.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/Panel.js
r6833 r7597 138 138 if (control.type == OpenLayers.Control.TYPE_BUTTON) { 139 139 control.trigger(); 140 this.redraw(); 140 141 return; 141 142 } … … 146 147 control.activate(); 147 148 } 149 this.redraw(); 148 150 return; 149 151 } trunk/openlayers/tests/Control/Panel.html
r6724 r7597 11 11 } 12 12 function test_Control_Panel_constructor (t) { 13 t.plan( 5);13 t.plan(6); 14 14 var map = new OpenLayers.Map('map'); 15 15 var panel = new OpenLayers.Control.Panel(); … … 38 38 t.ok(toolControl.active && !anotherToolControl.active && !toggleControl.active, 39 39 "activated one tool control, the other one is inactive and the toggle control also."); 40 41 panel.redraw = function(){ 42 t.ok(true,"Redraw called on activated toggle"); 43 } 40 44 41 45 panel.activateControl(toggleControl);
