Fix test error for slick 1.5.8

This commit is contained in:
emmanuel
2015-11-16 11:30:34 +01:00
parent 47441e47c0
commit 38eb9eab29
2 changed files with 11 additions and 5 deletions
+3 -4
View File
@@ -1,5 +1,5 @@
///<reference path="../jquery/jquery.d.ts" />
///<reference path="/jquery.slick/slick.d.ts" />
///<reference path="../jquery.slick/slick.d.ts" />
// --------------------------------------------------------
@@ -196,9 +196,8 @@ $("#diaporama").slick({
centerMode: false,
centerPadding: "50px",
cssEase: "ease",
customPaging: (slider, i: number) => {
console.log("customPaging slider", slider);
console.log("customPaging index", i);
customPaging: (slider, i) => {
return "customPaging slider " + slider + " customPaging index " + i;
},
dots: false,
draggable: true,
+8 -1
View File
@@ -83,7 +83,7 @@ interface JQuerySlickOptions {
* Custom paging templates. See source for use example.
* Default: n/a
*/
customPaging?: (slider, i: number) => string;
customPaging?: (slider: any, i: number) => string;
/**
* Show dot indicators
@@ -272,6 +272,13 @@ interface JQuery {
slick(): JQuery;
slick(options: JQuerySlickOptions): JQuery;
/**
* Trigger non-specialized signature method
* @param methodName
* @param arg
*/
slick(methodName: string, ...arg: any[]): any;
/**
* Returns the current slide index
* @param methodName The name of the method