Skip to content

Commit

Permalink
Merge pull request #3 from BunnyBearXYZ/antt001-patch-1
Browse files Browse the repository at this point in the history
init with empty texture (fix for issues 2)
  • Loading branch information
netcell committed Dec 30, 2015
2 parents a09945e + b3aac9a commit fab3f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NinePatchImage.es6
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class NinePatchImage extends Phaser.Image {
* @param {NinePatchCache} ninePatchImages - To be deprecated.
*/
constructor(game, x = 0, y = 0, key, ninePatchImages) {
super(game, x, y);
super(game, x, y, PIXI.Texture.emptyTexture);
game.add.existing(this);
/** Get the NinePatchCache instance */
if (!ninePatchImages) {
Expand Down Expand Up @@ -69,4 +69,4 @@ export default class NinePatchImage extends Phaser.Image {
}
}
}
}
}

0 comments on commit fab3f97

Please sign in to comment.