Skip to content

Commit

Permalink
fix(slides): check for slide first before update. Fixes #4870
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Dec 29, 2015
1 parent d3d2c14 commit 074976f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/angular/directive/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ function($animate, $timeout) {

this.update = function() {
$timeout(function() {
if(!_this.__slider) {
return;
}

_this.__slider.update();
if (_this._options.loop) {
_this.__slider.createLoop();
Expand Down

0 comments on commit 074976f

Please sign in to comment.