mirror of
https://github.com/photonstorm/phaser
synced 2025-03-07 00:37:19 +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) {
|
set: function (value) {
|
||||||
|
|
||||||
this.view.x = value.x;
|
if (typeof value.x !== "undefined") { this.view.x = value.x; }
|
||||||
this.view.y = value.y;
|
if (typeof value.y !== "undefined") { this.view.y = value.y; }
|
||||||
|
|
||||||
if (this.bounds)
|
if (this.bounds)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue