mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Moved config initialization right before config options initializations
This commit is contained in:
parent
260d519a7e
commit
b01859eb06
1 changed files with 17 additions and 17 deletions
|
@ -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]
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue