fix bug in `showlrc: 2`

This commit is contained in:
DIYgod 2016-09-09 01:46:23 +08:00
parent 655d03bdb1
commit f7e91c04d3
No known key found for this signature in database
GPG Key ID: F8797DD1088C6506
3 changed files with 3 additions and 3 deletions

2
dist/APlayer.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -75,6 +75,7 @@ class APlayer {
};
// save lrc
this.element = this.option.element;
if (this.option.showlrc === 2 || this.option.showlrc === true) {
this.savelrc = [];
for (let i = 0; i < this.element.getElementsByClassName('aplayer-lrc-content').length; i++) {
@ -127,7 +128,6 @@ class APlayer {
}
};
this.element = this.option.element;
this.multiple = this.playIndex > -1;
this.music = this.multiple ? this.option.music[this.playIndex] : this.option.music;