fix re-display danmaku bug

This commit is contained in:
DIYgod 2016-08-29 02:50:44 +08:00
parent e626eceea9
commit 0b0a317796
No known key found for this signature in database
GPG Key ID: F8797DD1088C6506
4 changed files with 9 additions and 4 deletions

2
dist/DPlayer.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

@ -1,6 +1,6 @@
{
"name": "dplayer",
"version": "1.0.7",
"version": "1.0.8",
"description": "Wow, such a lovely HTML5 danmaku video player",
"main": "dist/DPlayer.min.js",
"scripts": {

View File

@ -1,4 +1,4 @@
console.log("\n %c DPlayer 1.0.7 %c http://dplayer.js.org \n\n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");
console.log("\n %c DPlayer 1.0.8 %c http://dplayer.js.org \n\n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");
require('./DPlayer.scss');
@ -692,6 +692,11 @@ class DPlayer {
if (option.danmaku) {
clearInterval(danmakuTime);
danContainer.innerHTML = `<div class="dplayer-danmaku-item dplayer-danmaku-item--demo"></div>`;
let danTunnel = {
right: {},
top: {},
bottom: {}
};
}
}
closeSetting();