OpenLayers OpenLayers

Ticket #552: ieInherit.patch

File ieInherit.patch, 0.9 kB (added by euzuro, 2 years ago)

hacky fix for this ie deficiency

  • lib/OpenLayers/BaseTypes.js

    old new  
    2323                arguments[i] = new mixin(OpenLayers.Class.isPrototype); 
    2424            } 
    2525            OpenLayers.Util.extend(proto, arguments[i]); 
     26 
     27            // This is a hack for IE see 
     28            // http://trac.openlayers.org/attachment/ticket/552 
     29            //  
     30            // The problem is that ie doesnt recognize toString as a property 
     31            //  so the util.extend() doesnt copy it over. we do it manually. 
     32            //  
     33            // to be revisited in 3.0 
     34            //  
     35            if (arguments[i].toString) { 
     36                proto.toString = arguments[i].toString; 
     37            } 
    2638        } 
    2739        return proto; 
    2840    }