Changed the order of defining startTime and previousTime properties

This commit is contained in:
Pavle Goloskokovic 2018-01-12 16:12:15 +01:00
parent b2eef5b96e
commit 4038291373

View file

@ -27,15 +27,6 @@ var HTML5AudioSound = new Class({
* @default null
*/
this.audio = null;
/**
* Audio tag's playback position recorded on previous
* update method call. Set to 0 if sound is not playing.
*
* @private
* @property {number} previousTime
* @default 0
*/
this.previousTime = 0;
/**
* Timestamp as generated by the Request Animation Frame or SetTimeout
* representing the time at which the delayed sound playback should start.
@ -46,6 +37,15 @@ var HTML5AudioSound = new Class({
* @default 0
*/
this.startTime = 0;
/**
* Audio tag's playback position recorded on previous
* update method call. Set to 0 if sound is not playing.
*
* @private
* @property {number} previousTime
* @default 0
*/
this.previousTime = 0;
this.duration = this.tags[0].duration;
this.totalDuration = this.tags[0].duration;
BaseSound.call(this, manager, key, config);