From a81fe3cf021f5ba86576cbb3fe7fbd99eb5dc37b Mon Sep 17 00:00:00 2001 From: photonstorm Date: Thu, 2 Jun 2016 15:38:05 +0100 Subject: [PATCH] jshint fixes. --- src/gameobjects/Text.js | 2 +- src/physics/arcade/World.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gameobjects/Text.js b/src/gameobjects/Text.js index e59207962..b5f5e6624 100644 --- a/src/gameobjects/Text.js +++ b/src/gameobjects/Text.js @@ -403,7 +403,7 @@ Phaser.Text.prototype.updateText = function () { { lineWidth += this.measureLine(lines[i]); } - else + else { lineWidth += this.context.measureText(lines[i]).width; } diff --git a/src/physics/arcade/World.js b/src/physics/arcade/World.js index e526fa3c1..987dc010c 100644 --- a/src/physics/arcade/World.js +++ b/src/physics/arcade/World.js @@ -986,7 +986,10 @@ Phaser.Physics.Arcade.prototype = { */ intersects: function (body1, body2) { - if (body1 === body2) return false; + if (body1 === body2) + { + return false; + } // Rect vs. Rect if (body1.right <= body2.position.x)