OpenLayers OpenLayers

Ticket #452: layer.patch

File layer.patch, 0.9 kB (added by bartvde, 2 years ago)

patch for Layer.js

  • Layer.js

    old new  
    1818    /** @type DOMElement */ 
    1919    div: null, 
    2020 
     21    /** supported application event types 
     22     *  
     23     * @type Array */ 
     24    EVENT_TYPES: [  
     25        "loadstart", "loadend", "loadcancel"], 
     26 
     27    /** @type OpenLayers.Events */ 
     28    events: null, 
     29 
    2130    /** This variable is set when the layer is added to the map, via the  
    2231     *  accessor function setMap() 
    2332     *  
     
    121130            this.div.style.height = "100%"; 
    122131            this.div.id = this.id; 
    123132        } 
     133 
     134        this.events = new OpenLayers.Events(this, this.div, this.EVENT_TYPES); 
    124135    }, 
    125136     
    126137    /** 
     
    135146        this.name = null; 
    136147        this.div = null; 
    137148        this.options = null; 
     149        this.events = null; 
    138150    }, 
    139151     
    140152   /**