mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Added missing copy parameter to Image.crop, fixing jshint in the process.
This commit is contained in:
parent
cca955f1fd
commit
b4ba7958c6
1 changed files with 3 additions and 2 deletions
|
@ -369,9 +369,10 @@ Phaser.Image.prototype.resetFrame = function() {
|
|||
*
|
||||
* @method Phaser.Image#crop
|
||||
* @memberof Phaser.Image
|
||||
* @param {Phaser.Rectangle|object} rect - The Rectangle to crop the Image to. Pass null or no parameters to clear a previously set crop rectangle.
|
||||
* @param {Phaser.Rectangle} rect - The Rectangle used during cropping. Pass null or no parameters to clear a previously set crop rectangle.
|
||||
* @param {boolean} [copy=false] - If false Sprite.cropRect will be a reference to the given rect. If true it will copy the rect values into a local Sprite.cropRect object.
|
||||
*/
|
||||
Phaser.Image.prototype.crop = function(rect) {
|
||||
Phaser.Image.prototype.crop = function(rect, copy) {
|
||||
|
||||
if (typeof copy === 'undefined') { copy = false; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue