[OpenLayers-Dev] [OpenLayers-Trac] [OpenLayers] #850: typo in
Collection.calculateBounds()
Erik Uzureau
erik.uzureau at metacarta.com
Thu Jul 19 13:17:58 EDT 2007
actually, it was
http://trac.openlayers.org/changeset/2473#file0
thanks for picking this up. logical bleep on my part. apologies!
erik
On 7/19/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
> Erik, can you review this one? 'svn blame' says it belongs to you, and
> it looks like it was part of r2370:
>
> - getBounds: function () {
> - if (!this.bounds) {
> - for (var i = 0; i < this.components.length; i++) {
> + calculateBounds: function() {
> + this.bounds = null;
> + if ( !this.components || (this.components.length > 0)) {
> + this.setBounds(this.components[0].getBounds());
> + for (var i = 1; i < this.components.length; i++) {
>
> It certainly 'feels' wrong to me.
>
>
> -- Chris
>
> On Thu, Jul 19, 2007 at 01:08:56PM -0000, OpenLayers wrote:
> > #850: typo in Collection.calculateBounds()
> > ---------------------+------------------------------------------------------
> > Reporter: pgiraud | Owner:
> > Type: feature | Status: new
> > Priority: minor | Milestone:
> > Component: general | Version: 2.4
> > Keywords: |
> > ---------------------+------------------------------------------------------
> > It is likely that there is a little typo in the calculateBounds in the
> > Geometry.Collection class.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
More information about the Dev
mailing list