diff --git a/js/source/geojson_source.js b/js/source/geojson_source.js index ba21609075b..866ab092ae9 100644 --- a/js/source/geojson_source.js +++ b/js/source/geojson_source.js @@ -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, @@ -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)); }, diff --git a/js/source/video_source.js b/js/source/video_source.js index 1c5eab8e62b..edf83a3aaf6 100644 --- a/js/source/video_source.js +++ b/js/source/video_source.js @@ -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); } },