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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Erik Uzureau-3
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 <[hidden email]> 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
> [hidden email]
> http://openlayers.org/mailman/listinfo/trac
>
_______________________________________________
Dev mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/dev