Skip to content

Commit

Permalink
fix customPaging not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark committed Nov 24, 2015
1 parent cb2aca7 commit c91575f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 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.1",
"version": "3.1.2",
"homepage": "https://github.com/devmark/angular-slick-carousel",
"authors": [
"DevMark <hc.devmark@gmail.com>"
Expand Down
12 changes: 7 additions & 5 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 <hc.devmark@gmail.com>
* https://github.com/devmark/angular-slick-carousel
* Version: 3.1.1 - 2015-10-26T14:22:13.640Z
* Version: 3.1.2 - 2015-11-24T02:43:00.279Z
* License: MIT
*/

Expand Down Expand Up @@ -83,13 +83,15 @@ angular
autoplaySpeed: scope.autoplaySpeed != null ? parseInt(scope.autoplaySpeed, 10) : 3000,
arrows: scope.arrows !== 'false',
asNavFor: scope.asNavFor ? scope.asNavFor : void 0,
appendArrows: scope.appendArrows ? $(scope.appendArrows) : $(element),
prevArrow: scope.prevArrow ? $(scope.prevArrow) : void 0,
nextArrow: scope.nextArrow ? $(scope.nextArrow) : void 0,
appendArrows: scope.appendArrows ? angular.element(scope.appendArrows) : angular.element(element),
prevArrow: scope.prevArrow ? angular.element(scope.prevArrow) : void 0,
nextArrow: scope.nextArrow ? angular.element(scope.nextArrow) : void 0,
centerMode: scope.centerMode === 'true',
centerPadding: scope.centerPadding || '50px',
cssEase: scope.cssEase || 'ease',
customPaging: attr.customPaging ? customPaging : void 0,
customPaging: attr.customPaging ? function (slick, index) {
return scope.customPaging({ slick: slick, index: index });
} : void 0,
dots: attr.dots || scope.dots === 'true',
draggable: scope.draggable !== 'false',
fade: scope.fade === '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.1",
"version": "3.1.2",
"main": "dist/angular-slick.js",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion src/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ angular
centerMode: scope.centerMode === 'true',
centerPadding: scope.centerPadding || '50px',
cssEase: scope.cssEase || 'ease',
customPaging: attr.customPaging ? customPaging : void 0,
customPaging: attr.customPaging ? function (slick, index) {
return scope.customPaging({ slick: slick, index: index });
} : void 0,
dots: attr.dots || scope.dots === 'true',
draggable: scope.draggable !== 'false',
fade: scope.fade === 'true',
Expand Down

0 comments on commit c91575f

Please sign in to comment.