unbind all event handlers to video in clean-up method

This commit is contained in:
Sanj 2011-03-14 07:23:34 +05:30
parent f4764460b0
commit 687ff93506

View File

@ -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();