mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Minor optimisation in TilemapLayerGL to remove unnecessary loop.
This commit is contained in:
parent
5b6e157a43
commit
0dd3610ee4
1 changed files with 1 additions and 8 deletions
|
@ -617,14 +617,7 @@ Phaser.TilemapLayerGL.prototype.resolveTileset = function (tileIndex) {
|
|||
*/
|
||||
Phaser.TilemapLayerGL.prototype.resetTilesetCache = function () {
|
||||
|
||||
var tilesets = this._mc.tilesets;
|
||||
|
||||
// TODO: why not just set this._mc.tilesets = []; ??
|
||||
while (tilesets.length)
|
||||
{
|
||||
tilesets.pop();
|
||||
}
|
||||
|
||||
this._mc.tilesets = [];
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue