Skip to content

Commit c91575f

Browse files
author
Mark
committed
fix customPaging not work
1 parent cb2aca7 commit c91575f

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
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.1",
3+
"version": "3.1.2",
44
"homepage": "https://github.com/devmark/angular-slick-carousel",
55
"authors": [
66
"DevMark <[email protected]>"

dist/angular-slick.js

Lines changed: 7 additions & 5 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.1 - 2015-10-26T14:22:13.640Z
5+
* Version: 3.1.2 - 2015-11-24T02:43:00.279Z
66
* License: MIT
77
*/
88

@@ -83,13 +83,15 @@ angular
8383
autoplaySpeed: scope.autoplaySpeed != null ? parseInt(scope.autoplaySpeed, 10) : 3000,
8484
arrows: scope.arrows !== 'false',
8585
asNavFor: scope.asNavFor ? scope.asNavFor : void 0,
86-
appendArrows: scope.appendArrows ? $(scope.appendArrows) : $(element),
87-
prevArrow: scope.prevArrow ? $(scope.prevArrow) : void 0,
88-
nextArrow: scope.nextArrow ? $(scope.nextArrow) : void 0,
86+
appendArrows: scope.appendArrows ? angular.element(scope.appendArrows) : angular.element(element),
87+
prevArrow: scope.prevArrow ? angular.element(scope.prevArrow) : void 0,
88+
nextArrow: scope.nextArrow ? angular.element(scope.nextArrow) : void 0,
8989
centerMode: scope.centerMode === 'true',
9090
centerPadding: scope.centerPadding || '50px',
9191
cssEase: scope.cssEase || 'ease',
92-
customPaging: attr.customPaging ? customPaging : void 0,
92+
customPaging: attr.customPaging ? function (slick, index) {
93+
return scope.customPaging({ slick: slick, index: index });
94+
} : void 0,
9395
dots: attr.dots || scope.dots === 'true',
9496
draggable: scope.draggable !== 'false',
9597
fade: scope.fade === '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.1",
3+
"version": "3.1.2",
44
"main": "dist/angular-slick.js",
55
"repository": {
66
"type": "git",

src/slick.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ angular
8080
centerMode: scope.centerMode === 'true',
8181
centerPadding: scope.centerPadding || '50px',
8282
cssEase: scope.cssEase || 'ease',
83-
customPaging: attr.customPaging ? customPaging : void 0,
83+
customPaging: attr.customPaging ? function (slick, index) {
84+
return scope.customPaging({ slick: slick, index: index });
85+
} : void 0,
8486
dots: attr.dots || scope.dots === 'true',
8587
draggable: scope.draggable !== 'false',
8688
fade: scope.fade === 'true',

0 commit comments

Comments
 (0)