Skip to content

Commit 0a5e8de

Browse files
Using subclass values for duration properties if available
1 parent 58d0be5 commit 0a5e8de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ var BaseSound = new Class({
4747
* @readonly
4848
* @property {number} duration
4949
*/
50-
this.duration = 0;
50+
this.duration = this.duration || 0;
5151
/**
5252
* Duration of the entire sound.
5353
*
5454
* @readonly
5555
* @property {number}
5656
*/
57-
this.totalDuration = 0;
57+
this.totalDuration = this.totalDuration || 0;
5858
/**
5959
* [description]
6060
*

0 commit comments

Comments
 (0)