浏览代码

Tweak comments.

NaotoshiFujita 3 年之前
父节点
当前提交
9c57e67fb6
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 0 0
      dist/js/splide.js.map
  2. 1 1
      src/js/components/Controller/Controller.ts
  3. 3 3
      src/js/components/Slides/Slides.ts

文件差异内容过多而无法显示
+ 0 - 0
dist/js/splide.js.map


+ 1 - 1
src/js/components/Controller/Controller.ts

@@ -306,7 +306,7 @@ export function Controller( Splide: Splide, Components: Components, options: Opt
   }
 
   /**
-   * Returns the current/previous index slide index.
+   * Returns the current/previous index.
    *
    * @param prev - Optional. Whether to return previous index or not.
    */

+ 3 - 3
src/js/components/Slides/Slides.ts

@@ -32,7 +32,7 @@ export interface  SlidesComponent extends BaseComponent {
   get( excludeClones?: boolean ): SlideComponent[];
   getIn( page: number ): SlideComponent[];
   getAt( index: number ): SlideComponent | undefined;
-  add( slide: string | Element | Array<string | Element>, index?: number, callback?: AnyFunction ): void;
+  add( slide: string | Element | Array<string | Element>, index?: number ): void;
   remove( selector: SlideMatcher ): void;
   forEach( iteratee: SlidesIteratee, excludeClones?: boolean ): void;
   filter( matcher: SlideMatcher ): SlideComponent[];
@@ -208,9 +208,9 @@ export function Slides( Splide: Splide, Components: Components, options: Options
 
   /**
    * Filters Slides by the matcher
-   * that can be an index, an array with indices, a selector, or an predicate function.
+   * that can be an index, an array with indices, a selector, or a predicate function.
    *
-   * @param matcher - An index, an array with indices, a selector string, or an predicate function.
+   * @param matcher - An index, an array with indices, a selector string, or a predicate function.
    *
    * @return An array with SlideComponent objects.
    */

部分文件因为文件数量过多而无法显示