Skip to content

Commit

Permalink
Remove unused 'event' param
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Mar 22, 2017
1 parent dcfa60f commit 6c66017
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/directives/mobilegeolocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,18 @@ ngeo.MobileGeolocationController = function($scope, $element,
ol.events.listen(
this.geolocation_,
ol.Object.getChangeEventType(ol.Geolocation.Property.ACCURACY_GEOMETRY),
function(e) {
function() {
this.accuracyFeature_.setGeometry(
this.geolocation_.getAccuracyGeometry());
this.setPosition_(e);
this.setPosition_();
},
this);

ol.events.listen(
this.geolocation_,
ol.Object.getChangeEventType(ol.Geolocation.Property.POSITION),
function(e) {
this.setPosition_(e);
function() {
this.setPosition_();
},
this);

Expand Down Expand Up @@ -259,10 +259,9 @@ ngeo.MobileGeolocationController.prototype.untrack_ = function() {


/**
* @param {ol.ObjectEvent} event Event.
* @private
*/
ngeo.MobileGeolocationController.prototype.setPosition_ = function(event) {
ngeo.MobileGeolocationController.prototype.setPosition_ = function() {
var position = /** @type {ol.Coordinate} */ (this.geolocation_.getPosition());
var point = new ol.geom.Point(position);

Expand All @@ -276,7 +275,7 @@ ngeo.MobileGeolocationController.prototype.setPosition_ = function(event) {
this.map_.getView().setZoom(this.zoom_);
} else if (accuracy) {
var size = /** @type {!ol.Size} */ (this.map_.getSize());
this.map_.getView().fit(accuracy, size);
this.map_.getView().fit(/** @type {!ol.geom.Polygon} */ (accuracy), size);
}
this.viewChangedByMe_ = false;
}
Expand Down

0 comments on commit 6c66017

Please sign in to comment.