Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbsmyth committed Oct 3, 2016
1 parent f12f5ee commit df83131
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/pow.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@

scope.$watch(attrs.arrayBuffer, function(arrayBuffer) {

if (scope.data.arrayBuffer.__proto__.toString() === "[object ArrayBuffer]") {
window.player.fetch(arrayBuffer);
if(scope.data.arrayBuffer){

if (scope.data.arrayBuffer.__proto__.toString() === "[object ArrayBuffer]") {
window.player.fetch(arrayBuffer);

$timeout(function() {
scope.data.arrayBuffer = {};
}, 0, false);
}

$timeout(function() {
scope.data.arrayBuffer = {};
}, 0, false);
}


Expand Down

0 comments on commit df83131

Please sign in to comment.