From 687ff93506ccfff716242980f64f5b970ecda224 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 14 Mar 2011 07:23:34 +0530 Subject: [PATCH] unbind all event handlers to video in clean-up method --- padmaTexts/static/js/views/sidebar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/padmaTexts/static/js/views/sidebar.js b/padmaTexts/static/js/views/sidebar.js index d514172..fbc53ab 100644 --- a/padmaTexts/static/js/views/sidebar.js +++ b/padmaTexts/static/js/views/sidebar.js @@ -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();