OpenLayers OpenLayers

Changeset 1504

Show
Ignore:
Timestamp:
09/26/06 19:54:59 (2 years ago)
Author:
euzuro
Message:

return a copy of the mapsize, not the mapsize itself. this will hopefully prevent some nasty bugs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Map.js

    r1500 r1504  
    459459    */ 
    460460    getSize: function () { 
    461         return this.size; 
     461        var size = null; 
     462        if (this.size != null) { 
     463            size = this.size.clone(); 
     464        } 
     465        return size; 
    462466    }, 
    463467