mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
ESLint fix
This commit is contained in:
parent
e6616ec484
commit
735394bc84
1 changed files with 1 additions and 10 deletions
|
@ -3,7 +3,6 @@
|
||||||
* @copyright 2018 Photon Storm Ltd.
|
* @copyright 2018 Photon Storm Ltd.
|
||||||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var BaseSoundManager = require('../BaseSoundManager');
|
var BaseSoundManager = require('../BaseSoundManager');
|
||||||
var Class = require('../../utils/Class');
|
var Class = require('../../utils/Class');
|
||||||
var EventEmitter = require('eventemitter3');
|
var EventEmitter = require('eventemitter3');
|
||||||
|
@ -29,12 +28,8 @@ var NOOP = require('../../utils/NOOP');
|
||||||
* @param {Phaser.Game} game - Reference to the current game instance.
|
* @param {Phaser.Game} game - Reference to the current game instance.
|
||||||
*/
|
*/
|
||||||
var NoAudioSoundManager = new Class({
|
var NoAudioSoundManager = new Class({
|
||||||
|
|
||||||
Extends: EventEmitter,
|
Extends: EventEmitter,
|
||||||
|
initialize: function NoAudioSoundManager (game)
|
||||||
initialize:
|
|
||||||
|
|
||||||
function NoAudioSoundManager (game)
|
|
||||||
{
|
{
|
||||||
EventEmitter.call(this);
|
EventEmitter.call(this);
|
||||||
this.game = game;
|
this.game = game;
|
||||||
|
@ -49,9 +44,7 @@ var NoAudioSoundManager = new Class({
|
||||||
add: function (key, config)
|
add: function (key, config)
|
||||||
{
|
{
|
||||||
var sound = new NoAudioSound(this, key, config);
|
var sound = new NoAudioSound(this, key, config);
|
||||||
|
|
||||||
this.sounds.push(sound);
|
this.sounds.push(sound);
|
||||||
|
|
||||||
return sound;
|
return sound;
|
||||||
},
|
},
|
||||||
addAudioSprite: function (key, config)
|
addAudioSprite: function (key, config)
|
||||||
|
@ -90,7 +83,5 @@ var NoAudioSoundManager = new Class({
|
||||||
{
|
{
|
||||||
BaseSoundManager.prototype.forEachActiveSound.call(this, callbackfn, scope);
|
BaseSoundManager.prototype.forEachActiveSound.call(this, callbackfn, scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = NoAudioSoundManager;
|
module.exports = NoAudioSoundManager;
|
||||||
|
|
Loading…
Reference in a new issue