Use ol.inherits instead of goog.inherits

This commit is contained in:
Frederic Junod
2016-04-07 16:26:11 +02:00
parent 072728b083
commit e289bfbb7d
166 changed files with 448 additions and 452 deletions

View File

@@ -18,7 +18,7 @@ goog.require('ol.structs.PriorityQueue');
*/
ol.TileQueue = function(tilePriorityFunction, tileChangeCallback) {
goog.base(
ol.structs.PriorityQueue.call(
this,
/**
* @param {Array} element Element.
@@ -54,14 +54,14 @@ ol.TileQueue = function(tilePriorityFunction, tileChangeCallback) {
this.tilesLoadingKeys_ = {};
};
goog.inherits(ol.TileQueue, ol.structs.PriorityQueue);
ol.inherits(ol.TileQueue, ol.structs.PriorityQueue);
/**
* @inheritDoc
*/
ol.TileQueue.prototype.enqueue = function(element) {
var added = goog.base(this, 'enqueue', element);
var added = ol.structs.PriorityQueue.prototype.enqueue.call(this, element);
if (added) {
var tile = element[0];
ol.events.listen(tile, ol.events.EventType.CHANGE,