[OpenLayers-Dev] [OpenLayers-Trac] [OpenLayers] #596: map.destroy() flawed

Erik Uzureau erik.uzureau at metacarta.com
Sun Apr 1 02:07:58 EDT 2007


im fine with that too if people dont like the while loop.
it's true that while() is more likely to infinite loop
(if there is problem with removeLayer())

e


On 3/31/07, OpenLayers <trac at openlayers.org> wrote:
> #596: map.destroy() flawed
> -----------------------+----------------------------------------------------
>   Reporter:  euzuro    |       Owner:
>       Type:  bug       |      Status:  new
>   Priority:  critical  |   Milestone:  2.4 Release
>  Component:  Map       |     Version:
> Resolution:            |    Keywords:  review
> -----------------------+----------------------------------------------------
> Comment (by tschaub):
>
>  {{{
>  for(var i=this.layers.length - 1; i>=0; --i) {
>  }}}
>
>  would make this look less like an infinite loop - but that's just my
>  personal bias against while loops
>
> --
> Ticket URL: <http://trac.openlayers.org/ticket/596#comment:3>
> OpenLayers <http://openlayers.org/>
> A free AJAX map viewer
> _______________________________________________
> Trac mailing list
> Trac at openlayers.org
> http://openlayers.org/mailman/listinfo/trac
>



More information about the Dev mailing list