Changeset a976688 in osmose-frontend


Ignore:
Timestamp:
May 11, 2014 10:51:52 AM (6 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Children:
a5a2087
Parents:
dbb2335
Message:

Fix JS code to allow osmose display on android 2.2

Location:
static/map
Files:
2 edited

Legend:

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

    r29cb681 ra976688  
    4848    }); 
    4949 
    50     $(window).on('beforeunload', this._beforeunload.bind(this)); 
     50    $(window).on('beforeunload', L.Util.bind(this._beforeunload, this)); 
    5151 
    5252    L.Control.Sidebar.prototype.initialize.call(this, placeholder, options); 
     
    115115        reuse_changeset: reuse_changeset, 
    116116        modify: self._modifiyObjectStack, 
    117         delete: self._deleteObjectStack 
     117        'delete': self._deleteObjectStack 
    118118      }), 
    119119    }).done(function () { 
  • static/map/Osmose.Marker.js

    ra870ebb ra976688  
    77    this._editor = editor; 
    88    L.GeoJSON.prototype.initialize.call(this, data, { 
    9       pointToLayer: this._pointToLayer.bind(this), 
    10       onEachFeature: this._onEachFeature.bind(this), 
     9      pointToLayer: L.Util.bind(this._pointToLayer, this), 
     10      onEachFeature: L.Util.bind(this._onEachFeature, this), 
    1111    }); 
    1212  }, 
Note: See TracChangeset for help on using the changeset viewer.