Skip to content

Commit

Permalink
stop observing playsrc when we've got it
Browse files Browse the repository at this point in the history
  • Loading branch information
markharding committed Jul 3, 2015
1 parent 4920a2f commit 2e14522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/directives/playVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ define(['angular'], function(angular) {

scope.showVideo = false;

attrs.$observe('playsrc', function(src) {
var observer = attrs.$observe('playsrc', function(src) {
scope.srcFull = $sce.trustAsResourceUrl(src);
observer();
});

/**
Expand Down

0 comments on commit 2e14522

Please sign in to comment.