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.
|
// parameter is a padmaVideo object.
|
||||||
function cleanupVideo(videoObj) {
|
function cleanupVideo(videoObj) {
|
||||||
$('video')[0].pause();
|
$('video')[0].pause();
|
||||||
|
$('video').unbind("play").unbind("ended").unbind("loadedmetadata");
|
||||||
$('video').attr("src", "");
|
$('video').attr("src", "");
|
||||||
clearInterval(videoObj.interval);
|
clearInterval(videoObj.interval);
|
||||||
$('.padmaViewer').remove();
|
$('.padmaViewer').remove();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user