Skip to content

Commit cbef6d6

Browse files
committed
Formatting fix.
1 parent 11b0436 commit cbef6d6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ Please note that Phaser uses a custom build of Pixi and always has done. The fol
360360
relative to the targetCoordinateSpace DisplayObject.
361361

362362
As a result this also fixes how empty Groups are treated when they have no other children except Groups. So now calculations are correct.
363-
* DisplayObjectContainer.contains(child) is a new method which determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. This method is
364-
used in the new getBounds function.
363+
* DisplayObjectContainer.contains(child) is a new method which determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. This method is used in the new getBounds function.
365364
* Corrected DisplayObjects default `_bounds` rect from (0, 0, 1, 1) to (0, 0, 0, 0).
366365
* Thanks to @fmflame for his hard work on the above (#2639 #2627)
367366
* The methods `setStageReference` and `removeStageReference` have been removed from all Pixi classes. Objects no longer have `stage` properties, or references to the Stage object. This is because no reference to the Stage is required for any calculations, and Phaser can only have 1 Stage, so adding and removing references to it were superfluous actions.

src/gameobjects/BitmapText.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ Phaser.BitmapText.prototype.scanLine = function (data, scale, text) {
277277
var kerning = (prevCharCode && charData.kerning[prevCharCode]) ? charData.kerning[prevCharCode] : 0;
278278

279279
// Record the last space in the string and the current width
280-
if (/(\s)/.test(text.charAt(i))) {
280+
if (/(\s)/.test(text.charAt(i)))
281+
{
281282
lastSpace = i;
282283
wrappedWidth = w;
283284
}

0 commit comments

Comments
 (0)