We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b6e157 commit 0dd3610Copy full SHA for 0dd3610
1 file changed
src/tilemap/TilemapLayerGL.js
@@ -617,14 +617,7 @@ Phaser.TilemapLayerGL.prototype.resolveTileset = function (tileIndex) {
617
*/
618
Phaser.TilemapLayerGL.prototype.resetTilesetCache = function () {
619
620
- var tilesets = this._mc.tilesets;
621
-
622
- // TODO: why not just set this._mc.tilesets = []; ??
623
- while (tilesets.length)
624
- {
625
- tilesets.pop();
626
- }
627
+ this._mc.tilesets = [];
628
};
629
630
/**
0 commit comments