Skip to content

Commit fe5bd7e

Browse files
committed
Fixed jsdoc errors
1 parent 193ac6b commit fe5bd7e

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

src/gameobjects/text/TextStyle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ var TextStyle = new Class({
290290
* @since 3.0.0
291291
*
292292
* @param {[type]} style - [description]
293-
* @param {[type]} updateText - [description]
293+
* @param {boolean} [updateText=true] - [description]
294294
*
295-
* @return {Phaser.GameObjects.Components.TextStyle This TextStyle component.
295+
* @return {Phaser.GameObjects.Components.TextStyle} This TextStyle component.
296296
*/
297297
setStyle: function (style, updateText)
298298
{
@@ -565,7 +565,7 @@ var TextStyle = new Class({
565565
* @method Phaser.GameObjects.Components.TextStyle#setBackgroundColor
566566
* @since 3.0.0
567567
*
568-
* @param {string color - [description]
568+
* @param {string} color - [description]
569569
*
570570
* @return {Phaser.GameObjects.Text} The parent Text object.
571571
*/

src/sound/BaseSoundManager.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ var BaseSoundManager = new Class({
485485
* @since 3.0.0
486486
*
487487
* @param {function} callbackfn - Callback function. (sound: ISound, index: number, array: ISound[]) => void
488-
* @param [scope] - Callback context.
488+
* @param {object} scope - Callback context.
489489
*/
490490
forEachActiveSound: function (callbackfn, scope)
491491
{
@@ -499,11 +499,21 @@ var BaseSoundManager = new Class({
499499
});
500500
}
501501
});
502+
503+
/**
504+
* [description]
505+
*
506+
* @name Phaser.Sound.BaseSoundManager#rate
507+
* @type {number}
508+
* @since 3.0.0
509+
*/
502510
Object.defineProperty(BaseSoundManager.prototype, 'rate', {
511+
503512
get: function ()
504513
{
505514
return this._rate;
506515
},
516+
507517
set: function (value)
508518
{
509519
this._rate = value;
@@ -519,12 +529,23 @@ Object.defineProperty(BaseSoundManager.prototype, 'rate', {
519529
*/
520530
this.emit('rate', this, value);
521531
}
532+
522533
});
534+
535+
/**
536+
* [description]
537+
*
538+
* @name Phaser.Sound.BaseSoundManager#detune
539+
* @type {number}
540+
* @since 3.0.0
541+
*/
523542
Object.defineProperty(BaseSoundManager.prototype, 'detune', {
543+
524544
get: function ()
525545
{
526546
return this._detune;
527547
},
548+
528549
set: function (value)
529550
{
530551
this._detune = value;
@@ -540,5 +561,7 @@ Object.defineProperty(BaseSoundManager.prototype, 'detune', {
540561
*/
541562
this.emit('detune', this, value);
542563
}
564+
543565
});
566+
544567
module.exports = BaseSoundManager;

0 commit comments

Comments
 (0)