Added config default value assignment

This commit is contained in:
Pavle Goloskokovic 2018-01-26 14:52:03 +01:00
parent 1835217d7e
commit d0aa4e6913

View file

@ -22,6 +22,7 @@ var NoAudioSound = new Class({
* @param {ISoundConfig} [config={}] - An optional config object containing default sound settings.
*/
initialize: function NoAudioSound(manager, key, config) {
if (config === void 0) { config = {}; }
EventEmitter.call(this);
this.manager = manager;
this.key = key;