Moved config initialization right before config options initializations

This commit is contained in:
Pavle Goloskokovic 2017-12-06 18:04:18 +01:00
parent 260d519a7e
commit b01859eb06

View file

@ -18,23 +18,6 @@ var BaseSound = new Class({
* @property {string} key
*/
this.key = key;
/**
* [description]
*
* Default values will be set by properties' setters.
*
* @private
* @property {ISoundConfig} config
*/
this.config = {};
/**
* Reference to the currently used config.
* It could be default config or marker config.
*
* @private
* @property {ISoundConfig} currentConfig
*/
this.currentConfig = this.config;
/**
* Flag indicating if sound is currently playing.
*
@ -57,6 +40,23 @@ var BaseSound = new Class({
* @property {number} totalRate
*/
this.totalRate = 1;
/**
* [description]
*
* Default values will be set by properties' setters.
*
* @private
* @property {ISoundConfig} config
*/
this.config = {};
/**
* Reference to the currently used config.
* It could be default config or marker config.
*
* @private
* @property {ISoundConfig} currentConfig
*/
this.currentConfig = this.config;
/**
* [description]
*