Merge pull request #427 from amowu/patch-2

Fix cannot scroll after destroyed
This commit is contained in:
Sam Potts 2016-11-27 20:09:49 +11:00 committed by GitHub
commit 663c1fb627

View File

@ -3664,6 +3664,9 @@
// Replace the container with the original element provided
plyr.container.parentNode.replaceChild(original, plyr.container);
// unbind escape key
document.body.style.overflow = '';
// Event
_triggerEvent(original, 'destroyed', true);
}