OpenLayers OpenLayers

Changeset 1661

Show
Ignore:
Timestamp:
10/06/06 14:23:51 (2 years ago)
Author:
euzuro
Message:

bringing down r1660 from sandbox/euzuro/layerclone

Files:

Legend:

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

    r1657 r1661  
    116116    */ 
    117117    offset:function(px) { 
    118         return this.add(px.x, px.y);                 
     118        var newPx = this.clone(); 
     119        if (px) { 
     120            newPx = this.add(px.x, px.y); 
     121        } 
     122        return newPx; 
    119123    }, 
    120124