From 857722299ee061fa2d038b9fba6b126cbfe826bd Mon Sep 17 00:00:00 2001 From: Andrey Kurdyumov Date: Thu, 7 May 2015 11:29:14 +0600 Subject: [PATCH] Fix tests --- swipe/swipe-tests.ts | 2 +- swipe/swipe.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/swipe/swipe-tests.ts b/swipe/swipe-tests.ts index 26c11f6fdf..a13006ebbb 100644 --- a/swipe/swipe-tests.ts +++ b/swipe/swipe-tests.ts @@ -1,4 +1,4 @@ /// // Creation of element -var mySwipe = Swipe(document.getElementById('slider')); \ No newline at end of file +var mySwipe = new Swipe(document.getElementById('slider')); \ No newline at end of file diff --git a/swipe/swipe.d.ts b/swipe/swipe.d.ts index 5b8d396f58..9cb753ef91 100644 --- a/swipe/swipe.d.ts +++ b/swipe/swipe.d.ts @@ -16,7 +16,7 @@ interface SwipeOptions { } declare class Swipe { - constructor(container: HTMLElement, options: SwipeOptions); + constructor(container: HTMLElement, options?: SwipeOptions); prev(): void; next(): void; getPos(): number;