mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Temporary fix for #997
This commit is contained in:
parent
2bf1ee305c
commit
ef76d9bd6c
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue