mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +00:00
Plus validation of non-point objects
This commit is contained in:
parent
ee1df55d84
commit
852054b772
1 changed files with 2 additions and 2 deletions
|
@ -419,8 +419,8 @@ Object.defineProperty(Phaser.Camera.prototype, "position", {
|
|||
|
||||
set: function (value) {
|
||||
|
||||
this.view.x = value.x;
|
||||
this.view.y = value.y;
|
||||
if (typeof value.x !== "undefined") { this.view.x = value.x; }
|
||||
if (typeof value.y !== "undefined") { this.view.y = value.y; }
|
||||
|
||||
if (this.bounds)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue