Skip to content

Commit

Permalink
fix(nullRef): nullify reference to the destroyed slider (prevent it f…
Browse files Browse the repository at this point in the history
…rom calling update())
  • Loading branch information
VinceOPS committed Feb 9, 2016
1 parent 9dd27d1 commit 7e9d52c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/angular/directive/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function($animate, $timeout, $compile) {

$scope.$on('$destroy', function() {
slider.destroy();
_this.__slider = null;
});
});

Expand Down

0 comments on commit 7e9d52c

Please sign in to comment.