File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * @copyright 2018 Photon Storm Ltd.
44 * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License }
55 */
6-
76var BaseSoundManager = require ( '../BaseSoundManager' ) ;
87var Class = require ( '../../utils/Class' ) ;
98var EventEmitter = require ( 'eventemitter3' ) ;
@@ -29,12 +28,8 @@ var NOOP = require('../../utils/NOOP');
2928 * @param {Phaser.Game } game - Reference to the current game instance.
3029 */
3130var NoAudioSoundManager = new Class ( {
32-
3331 Extends : EventEmitter ,
34-
35- initialize :
36-
37- function NoAudioSoundManager ( game )
32+ initialize : function NoAudioSoundManager ( game )
3833 {
3934 EventEmitter . call ( this ) ;
4035 this . game = game ;
@@ -49,9 +44,7 @@ var NoAudioSoundManager = new Class({
4944 add : function ( key , config )
5045 {
5146 var sound = new NoAudioSound ( this , key , config ) ;
52-
5347 this . sounds . push ( sound ) ;
54-
5548 return sound ;
5649 } ,
5750 addAudioSprite : function ( key , config )
@@ -90,7 +83,5 @@ var NoAudioSoundManager = new Class({
9083 {
9184 BaseSoundManager . prototype . forEachActiveSound . call ( this , callbackfn , scope ) ;
9285 }
93-
9486} ) ;
95-
9687module . exports = NoAudioSoundManager ;
You can’t perform that action at this time.
0 commit comments