From b01859eb06855ac8815e1cc92c7a4d52eb9fa908 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 6 Dec 2017 18:04:18 +0100 Subject: [PATCH] Moved config initialization right before config options initializations --- v3/src/sound/BaseSound.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/v3/src/sound/BaseSound.js b/v3/src/sound/BaseSound.js index 0d3a982ea..57f583d0e 100644 --- a/v3/src/sound/BaseSound.js +++ b/v3/src/sound/BaseSound.js @@ -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] *