OpenLayers OpenLayers

Ticket #694: bt2.patch

File bt2.patch, 0.7 kB (added by tschaub, 2 years ago)

passes non-Safari

  • lib/OpenLayers/BaseTypes.js

    old new  
    3131            //  so the util.extend() doesnt copy it over. we do it manually. 
    3232            //  
    3333            // to be revisited in 3.0 
    34             //  
    35             if (arguments[i].hasOwnProperty('toString')) { 
     34            // 
     35            if((arguments[i].hasOwnProperty && arguments[i].hasOwnProperty('toString')) || 
     36               (!arguments[i].hasOwnProperty && arguments[i].toString)) { 
    3637                proto.toString = arguments[i].toString; 
    3738            } 
    3839        }