diff --git a/static/js/directives/youtubevideo.js b/static/js/directives/youtubevideo.js index 8e7d016f..2264a74a 100644 --- a/static/js/directives/youtubevideo.js +++ b/static/js/directives/youtubevideo.js @@ -74,7 +74,7 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'], $scope.volume = null; isYouTubeIframeAPIReady.then(function() { - $scope.$apply(function(scope) { + safeApply($scope, function(scope) { scope.youtubeAPIReady = true; }); });