Browse Source

Use "safeApply" as deferred can be resolved inside angular.js.

pull/172/head
Joachim Bauch 11 years ago
parent
commit
a2d44431b1
  1. 2
      static/js/directives/youtubevideo.js

2
static/js/directives/youtubevideo.js

@ -74,7 +74,7 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'], @@ -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;
});
});

Loading…
Cancel
Save