Skip to content

Commit

Permalink
3.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Wong Ho Chi Mark committed Jul 22, 2016
1 parent d321504 commit dc23ea4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-slick-carousel",
"version": "3.1.5",
"version": "3.1.6",
"homepage": "https://github.com/devmark/angular-slick-carousel",
"authors": [
"DevMark <[email protected]>"
Expand Down
10 changes: 6 additions & 4 deletions dist/angular-slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* angular-slick-carousel
* DevMark <[email protected]>
* https://github.com/devmark/angular-slick-carousel
* Version: 3.1.5 - 2016-05-17T16:15:23.062Z
* Version: 3.1.6 - 2016-07-22T13:43:55.973Z
* License: MIT
*/

Expand Down Expand Up @@ -181,12 +181,12 @@ angular
});

// Event
slickness.on('afterChange', function (event, slick, currentSlide, nextSlide) {
slickness.on('afterChange', function (event, slick, currentSlide) {
currentIndex = currentSlide;
if (typeof options.event.afterChange !== 'undefined') {
$timeout(function () {
scope.$apply(function () {
options.event.afterChange(event, slick, currentSlide, nextSlide);
options.event.afterChange(event, slick, currentSlide);
});
});
}
Expand Down Expand Up @@ -261,7 +261,9 @@ angular
});
}
if (typeof options.event.lazyLoaded !== 'undefined') {

slickness.on('lazyLoaded', function (event, slick, image, imageSource) {
console.log('=lazyLoadedlazyLoadedlazyLoaded');
$timeout(function () {
scope.$apply(function () {
options.event.lazyLoaded(event, slick, image, imageSource);
Expand Down Expand Up @@ -290,7 +292,7 @@ angular
});

return scope.$watch('settings', function (newVal, oldVal) {
if (newVal !== null) {
if (typeof newVal !== 'undefined' && newVal !== null) {
return destroyAndInit();
}
}, true);
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-slick.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-slick-carousel",
"version": "3.1.5",
"version": "3.1.6",
"main": "dist/angular-slick.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit dc23ea4

Please sign in to comment.