Skip to content

Commit 91bfd7d

Browse files
authored
Merge pull request phaserjs#4984 from Nightspeller/issue#4983
Proposed fix for the issue#4983
2 parents d06ee8f + 29c7fca commit 91bfd7d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/tilemaps/mapdata/LayerData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ var LayerData = new Class({
149149
* Layer specific properties (can be specified in Tiled)
150150
*
151151
* @name Phaser.Tilemaps.LayerData#properties
152-
* @type {object}
152+
* @type {object[]}
153153
* @since 3.0.0
154154
*/
155-
this.properties = GetFastValue(config, 'properties', {});
155+
this.properties = GetFastValue(config, 'properties', []);
156156

157157
/**
158158
* [description]

src/tilemaps/parsers/tiled/ParseTileLayers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ var ParseTileLayers = function (json, insertNull)
127127
tileHeight: json.tileheight,
128128
alpha: (curGroupState.opacity * curl.opacity),
129129
visible: (curGroupState.visible && curl.visible),
130-
properties: GetFastValue(curl, 'properties', {})
130+
properties: GetFastValue(curl, 'properties', [])
131131
});
132132

133133
for (var c = 0; c < curl.height; c++)
@@ -200,7 +200,7 @@ var ParseTileLayers = function (json, insertNull)
200200
tileHeight: json.tileheight,
201201
alpha: (curGroupState.opacity * curl.opacity),
202202
visible: (curGroupState.visible && curl.visible),
203-
properties: GetFastValue(curl, 'properties', {})
203+
properties: GetFastValue(curl, 'properties', [])
204204
});
205205

206206
var row = [];

0 commit comments

Comments
 (0)