Skip to content

Commit 9fcab5e

Browse files
committed
Lots of doc fixes (thanks nhowell)
1 parent 4ad7b30 commit 9fcab5e

6 files changed

Lines changed: 8 additions & 10 deletions

File tree

src/gameobjects/BitmapText.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Phaser.BitmapText.prototype = Object.create(PIXI.BitmapText.prototype);
129129
Phaser.BitmapText.prototype.constructor = Phaser.BitmapText;
130130

131131
/**
132-
* @method setStyle
132+
* @method Phaser.BitmapText.prototype.setStyle
133133
* @private
134134
*/
135135
Phaser.BitmapText.prototype.setStyle = function() {
@@ -177,8 +177,7 @@ Phaser.BitmapText.prototype.preUpdate = function () {
177177
/**
178178
* Override and use this function in your own custom objects to handle any update requirements you may have.
179179
*
180-
* @method Phaser.BitmapText#update
181-
* @memberof Phaser.BitmapText
180+
* @method Phaser.BitmapText.prototype.update
182181
*/
183182
Phaser.BitmapText.prototype.update = function() {
184183

@@ -200,6 +199,7 @@ Phaser.BitmapText.prototype.postUpdate = function () {
200199
}
201200

202201
/**
202+
* Destroy this BitmapText instance. This will remove any filters and un-parent any children.
203203
* @method Phaser.BitmapText.prototype.destroy
204204
*/
205205
Phaser.BitmapText.prototype.destroy = function() {

src/gameobjects/Graphics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Phaser.Graphics.prototype.postUpdate = function () {
137137
/**
138138
* Destroy this Graphics instance.
139139
*
140-
* @method Phaser.Sprite.prototype.destroy
140+
* @method Phaser.Graphics.prototype.destroy
141141
*/
142142
Phaser.Graphics.prototype.destroy = function() {
143143

@@ -158,7 +158,7 @@ Phaser.Graphics.prototype.destroy = function() {
158158
/*
159159
* Draws a {Phaser.Polygon} or a {PIXI.Polygon} filled
160160
*
161-
* @method Phaser.Sprite.prototype.drawPolygon
161+
* @method Phaser.Graphics.prototype.drawPolygon
162162
*/
163163
Phaser.Graphics.prototype.drawPolygon = function (poly) {
164164

src/gameobjects/Sprite.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,6 @@ Object.defineProperty(Phaser.Sprite.prototype, "exists", {
916916

917917
});
918918

919-
920919
/**
921920
* An Sprite that is fixed to the camera uses its x/y coordinates as offsets from the top left of the camera. These are stored in Sprite.cameraOffset.
922921
* Note that the cameraOffset values are in addition to any parent in the display list.

src/geom/Line.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Object.defineProperty(Phaser.Line.prototype, "perpSlope", {
186186
* Returns the intersection segment of AB and EF as a Point, or null if there is no intersection.
187187
* Adapted from code by Keith Hair
188188
*
189-
* @method Phaser.Line.intersects
189+
* @method Phaser.Line.intersectsPoints
190190
* @param {Phaser.Point} a - The start of the first Line to be checked.
191191
* @param {Phaser.Point} b - The end of the first line to be checked.
192192
* @param {Phaser.Point} e - The start of the second Line to be checked.

src/math/Math.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Phaser.Math = {
3232

3333
/**
3434
* a is fuzzyLessThan b if it is less than b + ε.
35-
* @method Phaser.Math#fuzzyEqual
35+
* @method Phaser.Math#fuzzyLessThan
3636
* @param {number} a
3737
* @param {number} b
3838
* @param {number} epsilon
@@ -810,7 +810,6 @@ Phaser.Math = {
810810
* @param {number} angle - The angle value to check. Must be between -180 and +180.
811811
* @param {number} min - The minimum angle that is allowed (must be -180 or greater).
812812
* @param {number} max - The maximum angle that is allowed (must be 180 or less).
813-
*
814813
* @return {number} The new angle value, returns the same as the input angle if it was within bounds
815814
*/
816815
angleLimit: function (angle, min, max) {

src/tween/TweenManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Phaser.TweenManager.prototype = {
174174
/**
175175
* Pauses all currently running tweens.
176176
*
177-
* @method Phaser.TweenManager#update
177+
* @method Phaser.TweenManager#pauseAll
178178
*/
179179
pauseAll: function () {
180180

0 commit comments

Comments
 (0)