diff --git a/src/ol/TileCache.js b/src/ol/TileCache.js index 2181f7ee7d..47f7a8bead 100644 --- a/src/ol/TileCache.js +++ b/src/ol/TileCache.js @@ -1,21 +1,17 @@ /** * @module ol/TileCache */ -import {inherits} from './util.js'; import LRUCache from './structs/LRUCache.js'; import {fromKey, getKey} from './tilecoord.js'; -/** - * @extends {module:ol/structs/LRUCache.} - */ -class TileCache { +class TileCache extends LRUCache { /** * @param {number=} opt_highWaterMark High water mark. */ constructor(opt_highWaterMark) { - LRUCache.call(this, opt_highWaterMark); + super(opt_highWaterMark); } @@ -53,7 +49,5 @@ class TileCache { } } -inherits(TileCache, LRUCache); - export default TileCache;