Skip to content

Commit 13b2c12

Browse files
ESLint fix
1 parent 48f73e3 commit 13b2c12

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

src/sound/noaudio/NoAudioSoundManager.js

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ var EventEmitter = require('eventemitter3');
33
var NoAudioSound = require('./NoAudioSound');
44
var BaseSoundManager = require('../BaseSoundManager');
55
var NOOP = require('../../utils/NOOP');
6+
67
/*!
78
* @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
89
*/
910
var NoAudioSoundManager = new Class({
1011
Extends: EventEmitter,
12+
1113
/**
1214
* No audio implementation of the sound manager. It is used if audio has been
1315
* disabled in the game config or the device doesn't support any audio.
@@ -20,7 +22,8 @@ var NoAudioSoundManager = new Class({
2022
* @constructor
2123
* @param {Phaser.Game} game - Reference to the current game instance.
2224
*/
23-
initialize: function NoAudioSoundManager(game) {
25+
initialize: function NoAudioSoundManager (game)
26+
{
2427
EventEmitter.call(this);
2528
this.game = game;
2629
this.sounds = [];
@@ -31,36 +34,44 @@ var NoAudioSoundManager = new Class({
3134
this.pauseOnBlur = true;
3235
this.locked = false;
3336
},
34-
add: function (key, config) {
37+
add: function (key, config)
38+
{
3539
var sound = new NoAudioSound(this, key, config);
3640
this.sounds.push(sound);
3741
return sound;
3842
},
39-
addAudioSprite: function (key, config) {
43+
addAudioSprite: function (key, config)
44+
{
4045
var sound = this.add(key, config);
4146
sound.spritemap = {};
4247
return sound;
4348
},
44-
play: function (key, extra) {
49+
play: function (key, extra)
50+
{
4551
return false;
4652
},
47-
playAudioSprite: function (key, spriteName, config) {
53+
playAudioSprite: function (key, spriteName, config)
54+
{
4855
return false;
4956
},
50-
remove: function (sound) {
57+
remove: function (sound)
58+
{
5159
return BaseSoundManager.prototype.remove.call(this, sound);
5260
},
53-
removeByKey: function (key) {
61+
removeByKey: function (key)
62+
{
5463
return BaseSoundManager.prototype.removeByKey.call(this, key);
5564
},
5665
pauseAll: NOOP,
5766
resumeAll: NOOP,
5867
stopAll: NOOP,
5968
update: NOOP,
60-
destroy: function () {
69+
destroy: function ()
70+
{
6171
BaseSoundManager.prototype.destroy.call(this);
6272
},
63-
forEachActiveSound: function (callbackfn, thisArg) {
73+
forEachActiveSound: function (callbackfn, thisArg)
74+
{
6475
BaseSoundManager.prototype.forEachActiveSound.call(this, callbackfn, thisArg);
6576
}
6677
});

0 commit comments

Comments
 (0)