OpenLayers OpenLayers

Ticket #788: Control.displayClass.diff

File Control.displayClass.diff, 0.6 kB (added by fredj, 1 year ago)

remove all the periods

  • lib/OpenLayers/Control.js

    old new  
    5252        // We do this before the extend so that instances can override 
    5353        // className in options. 
    5454        this.displayClass =  
    55             this.CLASS_NAME.replace("OpenLayers.", "ol").replace(".",""); 
     55            this.CLASS_NAME.replace("OpenLayers.", "ol").replace(/\./g, ""); 
    5656         
    5757        OpenLayers.Util.extend(this, options); 
    5858