Skip to content

Commit c3313ef

Browse files
Fixed class docs
1 parent 631e6cd commit c3313ef

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* @copyright 2018 Photon Storm Ltd.
44
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
55
*/
6-
76
var Class = require('../../utils/Class');
87
var BaseSoundManager = require('../BaseSoundManager');
98
var HTML5AudioSound = require('./HTML5AudioSound');
@@ -17,16 +16,12 @@ var HTML5AudioSound = require('./HTML5AudioSound');
1716
* @constructor
1817
* @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
1918
* @since 3.0.0
20-
*
19+
*
2120
* @param {Phaser.Game} game - Reference to the current game instance.
2221
*/
2322
var HTML5AudioSoundManager = new Class({
24-
2523
Extends: BaseSoundManager,
26-
27-
initialize:
28-
29-
function HTML5AudioSoundManager (game)
24+
initialize: function HTML5AudioSoundManager (game)
3025
{
3126
/**
3227
* Flag indicating whether if there are no idle instances of HTML5 Audio tag,
@@ -130,10 +125,10 @@ var HTML5AudioSoundManager = new Class({
130125
*
131126
* @method Phaser.Sound.HTML5AudioSoundManager#add
132127
* @since 3.0.0
133-
*
128+
*
134129
* @param {string} key - Asset key for the sound.
135130
* @param {ISoundConfig} [config] - An optional config object containing default sound settings.
136-
*
131+
*
137132
* @return {Phaser.Sound.HTML5AudioSound} The new sound instance.
138133
*/
139134
add: function (key, config)
@@ -272,11 +267,11 @@ var HTML5AudioSoundManager = new Class({
272267
* @method Phaser.Sound.HTML5AudioSoundManager#isLocked
273268
* @protected
274269
* @since 3.0.0
275-
*
270+
*
276271
* @param {Phaser.Sound.HTML5AudioSound} sound - Sound object on which to perform queued action.
277272
* @param {string} prop - Name of the method to be called or property to be assigned a value to.
278273
* @param {*} [value] - An optional parameter that either holds an array of arguments to be passed to the method call or value to be set to the property.
279-
*
274+
*
280275
* @return {boolean} Whether the sound manager is locked.
281276
*/
282277
isLocked: function (sound, prop, value)

0 commit comments

Comments
 (0)