Skip to content

Commit 15b544f

Browse files
committed
jsdoc fixes
1 parent 9d52b6a commit 15b544f

5 files changed

Lines changed: 9 additions & 29 deletions

File tree

src/boot/TimeStep.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,7 @@ var TimeStep = new Class({
290290
* [description]
291291
*
292292
* @name Phaser.Boot.TimeStep#deltaHistory
293-
* @type {array}
294-
* @default 0
293+
* @type {integer[]}
295294
* @since 3.0.0
296295
*/
297296
this.deltaHistory = [];

src/cameras/controls/index.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,7 @@
1010

1111
module.exports = {
1212

13-
/**
14-
* This alias will be removed in a future version.
15-
* Use `FixedKeyControl` instead.
16-
*
17-
* @deprecated
18-
* @name Phaser.Cameras.Controls.Fixed
19-
*/
20-
Fixed: require('./FixedKeyControl'),
21-
2213
FixedKeyControl: require('./FixedKeyControl'),
23-
24-
/**
25-
* This alias will be removed in a future version.
26-
* Use `SmoothedKeyControl` instead.
27-
*
28-
* @deprecated
29-
* @name Phaser.Cameras.Controls.Smoothed
30-
*/
31-
Smoothed: require('./SmoothedKeyControl'),
32-
3314
SmoothedKeyControl: require('./SmoothedKeyControl')
3415

3516
};

src/display/color/HSVColorWheel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var HSVToRGB = require('./HSVToRGB');
1515
* @param {number} [s=1] - The saturation, in the range 0 - 1.
1616
* @param {number} [v=1] - The value, in the range 0 - 1.
1717
*
18-
* @return {array} An array containing 360 elements, where each contains a single numeric value corresponding to the color at that point in the HSV color wheel.
18+
* @return {ColorObject[]} An array containing 360 elements, where each contains a single numeric value corresponding to the color at that point in the HSV color wheel.
1919
*/
2020
var HSVColorWheel = function (s, v)
2121
{

src/gameobjects/particles/ParticleEmitter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,19 +1797,19 @@ var ParticleEmitter = new Class({
17971797
* @since 3.0.0
17981798
*
17991799
* @param {ParticleEmitterCallback} callback - The function.
1800-
* @param {*} thisArg - The function's calling context.
1800+
* @param {*} context - The function's calling context.
18011801
*
18021802
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
18031803
*/
1804-
forEachAlive: function (callback, thisArg)
1804+
forEachAlive: function (callback, context)
18051805
{
18061806
var alive = this.alive;
18071807
var length = alive.length;
18081808

18091809
for (var index = 0; index < length; ++index)
18101810
{
18111811
// Sends the Particle and the Emitter
1812-
callback.call(thisArg, alive[index], this);
1812+
callback.call(context, alive[index], this);
18131813
}
18141814

18151815
return this;
@@ -1822,19 +1822,19 @@ var ParticleEmitter = new Class({
18221822
* @since 3.0.0
18231823
*
18241824
* @param {ParticleEmitterCallback} callback - The function.
1825-
* @param {*} thisArg - The function's calling context.
1825+
* @param {*} context - The function's calling context.
18261826
*
18271827
* @return {Phaser.GameObjects.Particles.ParticleEmitter} This Particle Emitter.
18281828
*/
1829-
forEachDead: function (callback, thisArg)
1829+
forEachDead: function (callback, context)
18301830
{
18311831
var dead = this.dead;
18321832
var length = dead.length;
18331833

18341834
for (var index = 0; index < length; ++index)
18351835
{
18361836
// Sends the Particle and the Emitter
1837-
callback.call(thisArg, dead[index], this);
1837+
callback.call(context, dead[index], this);
18381838
}
18391839

18401840
return this;

src/structs/List.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ var List = new Class({
639639
* @genericUse {EachListCallback.<T>} - [callback]
640640
*
641641
* @param {EachListCallback} callback - The function to call.
642-
* @param {*} [thisArg] - Value to use as `this` when executing callback.
642+
* @param {*} [context] - Value to use as `this` when executing callback.
643643
* @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.
644644
*/
645645
each: function (callback, context)

0 commit comments

Comments
 (0)