Skip to content

Commit

Permalink
Fixed lint errors in #4152
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Nov 20, 2018
1 parent 4534222 commit 5c45b47
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/tilemaps/Tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,16 +771,24 @@ var Tile = new Class({
* @since 3.0.0
*/
tileset: {

get: function ()
{
var tilemapLayer = this.tilemapLayer;
if (!tilemapLayer) return null;
var tilemapLayer = this.layer.tilemapLayer;

var tileset = tilemapLayer.gidMap[this.index];
if (!tileset) return null;
if (tilemapLayer)
{
var tileset = tilemapLayer.gidMap[this.index];

return tileset;
if (tileset)
{
return tileset;
}
}

return null;
}

},

/**
Expand Down

0 comments on commit 5c45b47

Please sign in to comment.