mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +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
|
* @property {string} key
|
||||||
*/
|
*/
|
||||||
this.key = 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.
|
* Flag indicating if sound is currently playing.
|
||||||
*
|
*
|
||||||
|
@ -57,6 +40,23 @@ var BaseSound = new Class({
|
||||||
* @property {number} totalRate
|
* @property {number} totalRate
|
||||||
*/
|
*/
|
||||||
this.totalRate = 1;
|
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]
|
* [description]
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue