fix bug in showlrc: 2

This commit is contained in:
DIYgod
2016-09-09 01:46:23 +08:00
parent 655d03bdb1
commit f7e91c04d3
3 changed files with 3 additions and 3 deletions
+1 -1
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;