Skip to content

Commit

Permalink
Use arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Feb 6, 2019
1 parent 8ddd09d commit 38de4d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contribs/gmf/src/contextualdata/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ ContextualdataController.prototype.setContent_ = function(coordinate) {
scope[`coord_${proj}_northern`] = coord[1];
});

const getRasterSuccess = function(resp) {
const getRasterSuccess = (resp) => {
Object.assign(scope, resp);
if (this.callback) {
Object.assign(scope, this.callback.call(this, coordinate, resp));
}
}.bind(this);
const getRasterError = function(resp) {
};
const getRasterError = () => {
console.error('Error on getting the raster.');
};
this.gmfRaster_.getRaster(coordinate).then(
Expand Down

0 comments on commit 38de4d8

Please sign in to comment.