Skip to content

Commit 312c31b

Browse files
committed
jsdoc and formatting fixes.
1 parent 89d1072 commit 312c31b

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Version 2.4 - "Katar" - in dev
302302
### Updates
303303

304304
* TypeScript definitions fixes and updates (thanks @clark-stevenson @isuda @ggarek)
305-
* JSDoc typo fixes (thanks @robertpenner)
305+
* JSDoc typo fixes (thanks @robertpenner @luckylooke)
306306
* Added missing `resumed` method to Phaser.State class template.
307307
* Color.webToColor and Color.updateColor now updates the `out.color` and `out.color32` properties (thanks @cuixiping #1728)
308308
* Tilemap.createFromObjects has been updated for Tiled 0.11 and can now look-up object layers based on id, uid or name. It will also now copy over Sprite scaling properties if set (thanks @mandarinx #1738)

src/tween/TweenData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Phaser.TweenData.prototype = {
178178
* Sets this tween to be a `to` tween on the properties given. A `to` tween starts at the current value and tweens to the destination value given.
179179
* For example a Sprite with an `x` coordinate of 100 could be tweened to `x` 200 by giving a properties object of `{ x: 200 }`.
180180
*
181-
* @method Phaser.Tween#to
181+
* @method Phaser.TweenData#to
182182
* @param {object} properties - The properties you want to tween, such as `Sprite.x` or `Sound.volume`. Given as a JavaScript object.
183183
* @param {number} [duration=1000] - Duration of this tween in ms.
184184
* @param {function} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden at will.
@@ -206,7 +206,7 @@ Phaser.TweenData.prototype = {
206206
* Sets this tween to be a `from` tween on the properties given. A `from` tween sets the target to the destination value and tweens to its current value.
207207
* For example a Sprite with an `x` coordinate of 100 tweened from `x` 500 would be set to `x` 500 and then tweened to `x` 100 by giving a properties object of `{ x: 500 }`.
208208
*
209-
* @method Phaser.Tween#from
209+
* @method Phaser.TweenData#from
210210
* @param {object} properties - The properties you want to tween, such as `Sprite.x` or `Sound.volume`. Given as a JavaScript object.
211211
* @param {number} [duration=1000] - Duration of this tween in ms.
212212
* @param {function} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden at will.

src/utils/Debug.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ Phaser.Utils.Debug.prototype = {
443443
this.rectangle(bounds, color, filled);
444444

445445
},
446+
446447
/**
447448
* Renders the Rope's segments. Note: This is really expensive as it has to calculate new segments everytime you call it
448449
*
@@ -452,9 +453,13 @@ Phaser.Utils.Debug.prototype = {
452453
* @param {boolean} [filled=true] - Render the rectangle as a fillRect (default, true) or a strokeRect (false)
453454
*/
454455
ropeSegments: function(rope, color, filled) {
456+
455457
var segments = rope.segments;
458+
459+
var self = this;
460+
456461
segments.forEach(function(segment) {
457-
this.rectangle(segment, color, filled);
462+
self.rectangle(segment, color, filled);
458463
}, this);
459464

460465
},

0 commit comments

Comments
 (0)