Minor optimisation in TilemapLayerGL to remove unnecessary loop.

This commit is contained in:
Pete Baron 2016-05-26 14:10:45 +12:00
parent 5b6e157a43
commit 0dd3610ee4

View file

@ -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 = [];
};
/**