|
2 | 2 | * angular-slick-carousel |
3 | 3 | * DevMark <hc.devmark@gmail.com> |
4 | 4 | * https://github.com/devmark/angular-slick-carousel |
5 | | - * Version: 3.1.5 - 2016-05-17T16:15:23.062Z |
| 5 | + * Version: 3.1.6 - 2016-07-22T13:43:55.973Z |
6 | 6 | * License: MIT |
7 | 7 | */ |
8 | 8 |
|
@@ -181,12 +181,12 @@ angular |
181 | 181 | }); |
182 | 182 |
|
183 | 183 | // Event |
184 | | - slickness.on('afterChange', function (event, slick, currentSlide, nextSlide) { |
| 184 | + slickness.on('afterChange', function (event, slick, currentSlide) { |
185 | 185 | currentIndex = currentSlide; |
186 | 186 | if (typeof options.event.afterChange !== 'undefined') { |
187 | 187 | $timeout(function () { |
188 | 188 | scope.$apply(function () { |
189 | | - options.event.afterChange(event, slick, currentSlide, nextSlide); |
| 189 | + options.event.afterChange(event, slick, currentSlide); |
190 | 190 | }); |
191 | 191 | }); |
192 | 192 | } |
@@ -261,7 +261,9 @@ angular |
261 | 261 | }); |
262 | 262 | } |
263 | 263 | if (typeof options.event.lazyLoaded !== 'undefined') { |
| 264 | + |
264 | 265 | slickness.on('lazyLoaded', function (event, slick, image, imageSource) { |
| 266 | + console.log('=lazyLoadedlazyLoadedlazyLoaded'); |
265 | 267 | $timeout(function () { |
266 | 268 | scope.$apply(function () { |
267 | 269 | options.event.lazyLoaded(event, slick, image, imageSource); |
@@ -290,7 +292,7 @@ angular |
290 | 292 | }); |
291 | 293 |
|
292 | 294 | return scope.$watch('settings', function (newVal, oldVal) { |
293 | | - if (newVal !== null) { |
| 295 | + if (typeof newVal !== 'undefined' && newVal !== null) { |
294 | 296 | return destroyAndInit(); |
295 | 297 | } |
296 | 298 | }, true); |
|
0 commit comments