Changeset f0abfcb in osmose-frontend


Ignore:
Timestamp:
Mar 1, 2014 11:08:43 AM (6 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
f76fbe2
Parents:
1e9bc2e
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (22/02/2014 19:31:20)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (01/03/2014 11:08:43)
Message:

Osmose.Errors.js, Leflat already bind function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/map/Osmose.Errors.js

    r53d7834 rf0abfcb  
    1010    L.LayerGroup.prototype.initialize.call(this); 
    1111    this._menu = menu; 
    12     this._updateOsmoseLayerBind = this._updateOsmoseLayer.bind(this); 
    1312  }, 
    1413 
    1514  onAdd: function (map) { 
    1615    this._map = map; 
    17     map.on('moveend', this._updateOsmoseLayerBind, this); 
    18     this._menu.on('itemchanged', this._updateOsmoseLayerBind, this); 
     16    map.on('moveend', this._updateOsmoseLayer, this); 
     17    this._menu.on('itemchanged', this._updateOsmoseLayer, this); 
    1918    this._onMap = true; 
    2019    this._updateOsmoseLayer(); 
     
    2221 
    2322  onRemove: function (map) { 
    24     map.off('moveend', this._updateOsmoseLayerBind, this); 
    25     this._menu.off('itemchanged', this._updateOsmoseLayerBind, this); 
     23    map.off('moveend', this._updateOsmoseLayer, this); 
     24    this._menu.off('itemchanged', this._updateOsmoseLayer, this); 
    2625    this._onMap = false; 
    2726    this.clearLayers(); 
Note: See TracChangeset for help on using the changeset viewer.