Skip to content

Commit aa8384a

Browse files
photonstormclark-stevenson
authored andcommitted
Temporary fix for phaserjs#997
1 parent 9e9cf1a commit aa8384a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/gameobjects/Button.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* You can set a unique texture frame and Sound for any of these states.
1818
*
1919
* @constructor
20-
* @extends Phaser.Image
20+
* @extends Phaser.Sprite
2121
*
2222
* @param {Phaser.Game} game Current game instance.
2323
* @param {number} [x=0] - X position of the Button.
@@ -38,7 +38,7 @@ Phaser.Button = function (game, x, y, key, callback, callbackContext, overFrame,
3838
callback = callback || null;
3939
callbackContext = callbackContext || this;
4040

41-
Phaser.Image.call(this, game, x, y, key, outFrame);
41+
Phaser.Sprite.call(this, game, x, y, key, outFrame);
4242

4343
/**
4444
* @property {number} type - The Phaser Object Type.
@@ -206,7 +206,7 @@ Phaser.Button = function (game, x, y, key, callback, callbackContext, overFrame,
206206

207207
};
208208

209-
Phaser.Button.prototype = Object.create(Phaser.Image.prototype);
209+
Phaser.Button.prototype = Object.create(Phaser.Sprite.prototype);
210210
Phaser.Button.prototype.constructor = Phaser.Button;
211211

212212
/**

0 commit comments

Comments
 (0)