From 3ae82e46ad7f4333a8ba05c00718a656a4cd4c11 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Fri, 26 Sep 2014 22:12:18 +0200 Subject: [PATCH] Avoid removing too much DOM nodes - remove remoteVideos explicitly. --- static/js/directives/audiovideo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/directives/audiovideo.js b/static/js/directives/audiovideo.js index 16675818..e752c281 100644 --- a/static/js/directives/audiovideo.js +++ b/static/js/directives/audiovideo.js @@ -214,7 +214,7 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ } $scope.localVideo.src = ''; $scope.miniVideo.src = ''; - $($scope.remoteVideos).empty(); + $($scope.remoteVideos).children(".remoteVideo").remove(); }, 1500); $($scope.mini).removeClass("visible"); $scope.localVideo.style.opacity = 0;