Skip to content

Commit 074976f

Browse files
committed
fix(slides): check for slide first before update. Fixes #4870
1 parent d3d2c14 commit 074976f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/angular/directive/slides.js

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ function($animate, $timeout) {
5454

5555
this.update = function() {
5656
$timeout(function() {
57+
if(!_this.__slider) {
58+
return;
59+
}
60+
5761
_this.__slider.update();
5862
if (_this._options.loop) {
5963
_this.__slider.createLoop();

0 commit comments

Comments
 (0)