Temporary fix for #997

This commit is contained in:
photonstorm 2014-07-11 16:04:15 +01:00 committed by Clark Stevenson
parent 2bf1ee305c
commit ef76d9bd6c

View file

@ -17,7 +17,7 @@
* You can set a unique texture frame and Sound for any of these states. * You can set a unique texture frame and Sound for any of these states.
* *
* @constructor * @constructor
* @extends Phaser.Image * @extends Phaser.Sprite
* *
* @param {Phaser.Game} game Current game instance. * @param {Phaser.Game} game Current game instance.
* @param {number} [x=0] - X position of the Button. * @param {number} [x=0] - X position of the Button.
@ -38,7 +38,7 @@ Phaser.Button = function (game, x, y, key, callback, callbackContext, overFrame,
callback = callback || null; callback = callback || null;
callbackContext = callbackContext || this; callbackContext = callbackContext || this;
Phaser.Image.call(this, game, x, y, key, outFrame); Phaser.Sprite.call(this, game, x, y, key, outFrame);
/** /**
* @property {number} type - The Phaser Object Type. * @property {number} type - The Phaser Object Type.
@ -206,7 +206,7 @@ Phaser.Button = function (game, x, y, key, callback, callbackContext, overFrame,
}; };
Phaser.Button.prototype = Object.create(Phaser.Image.prototype); Phaser.Button.prototype = Object.create(Phaser.Sprite.prototype);
Phaser.Button.prototype.constructor = Phaser.Button; Phaser.Button.prototype.constructor = Phaser.Button;
/** /**