Skip to content

Commit

Permalink
s/cb/callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand Thakker committed Jun 7, 2016
1 parent 4ea303f commit c1b1e7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/source/geojson_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ GeoJSONSource.prototype = util.extend(Evented, /** @lends GeoJSONSource.prototyp
return this;
},

_updateData: function(cb) {
_updateData: function(callback) {
this._dirty = false;
var options = util.extend({
source: this.id,
Expand All @@ -109,7 +109,7 @@ GeoJSONSource.prototype = util.extend(Evented, /** @lends GeoJSONSource.prototyp
}
this.workerID = this.dispatcher.send(this.type + '.parse', options, function(err) {
this._loaded = true;
cb(err);
callback(err);

}.bind(this));
},
Expand Down
4 changes: 2 additions & 2 deletions js/source/video_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ VideoSource.prototype = util.inherit(Evented, /** @lends VideoSource.prototype *
this._currentTime = this.video.currentTime;
},

load: function(tile, cb) {
load: function(tile, callback) {
if (this._coord && this._coord.toString() === tile.coord.toString()) {
this._setTile(tile);
cb(null);
callback(null);
}
},

Expand Down

0 comments on commit c1b1e7c

Please sign in to comment.