OpenLayers OpenLayers

Changeset 1660

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

test in offset() if px is null -- was raising error in IE

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/layerclone/lib/OpenLayers/BaseTypes.js

    r1652 r1660  
    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