unbind all event handlers to video in clean-up method
This commit is contained in:
parent
f4764460b0
commit
687ff93506
|
@ -217,6 +217,7 @@ function setupPadmaLink(videoObj, data) {
|
|||
// parameter is a padmaVideo object.
|
||||
function cleanupVideo(videoObj) {
|
||||
$('video')[0].pause();
|
||||
$('video').unbind("play").unbind("ended").unbind("loadedmetadata");
|
||||
$('video').attr("src", "");
|
||||
clearInterval(videoObj.interval);
|
||||
$('.padmaViewer').remove();
|
||||
|
|
Loading…
Reference in New Issue
Block a user