Skip to content

Commit dc23ea4

Browse files
author
Wong Ho Chi Mark
committed
3.1.6
1 parent d321504 commit dc23ea4

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-slick-carousel",
3-
"version": "3.1.5",
3+
"version": "3.1.6",
44
"homepage": "https://github.com/devmark/angular-slick-carousel",
55
"authors": [
66
"DevMark <[email protected]>"

dist/angular-slick.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* angular-slick-carousel
33
* DevMark <[email protected]>
44
* 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
66
* License: MIT
77
*/
88

@@ -181,12 +181,12 @@ angular
181181
});
182182

183183
// Event
184-
slickness.on('afterChange', function (event, slick, currentSlide, nextSlide) {
184+
slickness.on('afterChange', function (event, slick, currentSlide) {
185185
currentIndex = currentSlide;
186186
if (typeof options.event.afterChange !== 'undefined') {
187187
$timeout(function () {
188188
scope.$apply(function () {
189-
options.event.afterChange(event, slick, currentSlide, nextSlide);
189+
options.event.afterChange(event, slick, currentSlide);
190190
});
191191
});
192192
}
@@ -261,7 +261,9 @@ angular
261261
});
262262
}
263263
if (typeof options.event.lazyLoaded !== 'undefined') {
264+
264265
slickness.on('lazyLoaded', function (event, slick, image, imageSource) {
266+
console.log('=lazyLoadedlazyLoadedlazyLoaded');
265267
$timeout(function () {
266268
scope.$apply(function () {
267269
options.event.lazyLoaded(event, slick, image, imageSource);
@@ -290,7 +292,7 @@ angular
290292
});
291293

292294
return scope.$watch('settings', function (newVal, oldVal) {
293-
if (newVal !== null) {
295+
if (typeof newVal !== 'undefined' && newVal !== null) {
294296
return destroyAndInit();
295297
}
296298
}, true);

dist/angular-slick.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-slick-carousel",
3-
"version": "3.1.5",
3+
"version": "3.1.6",
44
"main": "dist/angular-slick.js",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)