Skip to content

Commit d81ec7f

Browse files
committed
Merge pull request phaserjs#2526 from drhayes/dev
Don't extend Phaser.Utils when doing deep copy in Phaser.Cache.getJSON.
2 parents 6c292a4 + 8317563 commit d81ec7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/loader/Cache.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,10 @@ Phaser.Cache.prototype = {
454454
font: null,
455455
base: new PIXI.BaseTexture(data)
456456
};
457-
457+
458458
if (xSpacing === undefined) { xSpacing = 0; }
459459
if (ySpacing === undefined) { ySpacing = 0; }
460-
460+
461461
if (atlasType === 'json')
462462
{
463463
obj.font = Phaser.LoaderParser.jsonBitmapFont(atlasData, obj.base, xSpacing, ySpacing);
@@ -1312,7 +1312,7 @@ Phaser.Cache.prototype = {
13121312
{
13131313
if (clone)
13141314
{
1315-
return Phaser.Utils.extend(true, data);
1315+
return Phaser.Utils.extend(true, {}, data);
13161316
}
13171317
else
13181318
{

0 commit comments

Comments
 (0)