Fixed typos.

This commit is contained in:
Uwe Oestermeier 2019-06-01 12:40:01 +02:00
parent 05ecd0b048
commit 304818dc13

View File

@ -48,10 +48,11 @@ export default class Tile extends PIXI.Sprite {
* Returns true iff the url is pending * Returns true iff the url is pending
* *
* @static * @static
* @param {*} url
* @returns * @returns
* @memberof Tile * @memberof Tile
*/ */
static isPending() { static isPending(url) {
return pendingTiles.has(url) && pendingTiles.get(url) > 0 return pendingTiles.has(url) && pendingTiles.get(url) > 0
} }
@ -193,7 +194,7 @@ export default class Tile extends PIXI.Sprite {
* @param {*} texture * @param {*} texture
*/ */
static lateTexture(url, texture) { static lateTexture(url, texture) {
let destroyBase = !deepZoomTileCache.has(url) let destroyBase = !registeredTiles.has(url)
texture.destroy(destroyBase) texture.destroy(destroyBase)
} }