[OpenLayers-Trac] Re: [OpenLayers] #2822: Scale control: Implement methods activate/deactivate.

OpenLayers trac-20090302 at openlayers.org
Wed Sep 15 19:02:13 EDT 2010


#2822: Scale control: Implement methods activate/deactivate.
------------------------------+---------------------------------------------
  Reporter:  jorix            |       Owner:              
      Type:  feature          |      Status:  reopened    
  Priority:  minor            |   Milestone:  2.11 Release
 Component:  Control.Scale    |     Version:  2.10 RC2    
Resolution:                   |    Keywords:              
     State:  Needs More Work  |  
------------------------------+---------------------------------------------

Comment(by jorix):

 Replying to [comment:11 jorix]:
 > Replying to [comment:10 ahocevar]:
 > > This {{{this.div == this.element}}} stuff is so ugly!
 > Yes you are right, is ugly...
 I thought that "this.div = this.element" could be replaced by[[BR]]
 "this.div = this.element.parentNode" (also ugly), but has the advantage
 that can remove the "if" in "activate", "deactivate" and "destroy"[[BR]]
 Is acceptable?

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2822#comment:12>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list