Plus validation of non-point objects

This commit is contained in:
Darek Zieliński 2014-07-14 20:09:22 +02:00
parent ee1df55d84
commit 852054b772

View file

@ -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)
{