Fix tests

This commit is contained in:
Andrey Kurdyumov
2015-05-07 11:29:14 +06:00
parent b318b6125a
commit 857722299e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/// <reference path="swipe.d.ts" />
// Creation of element
var mySwipe = Swipe(document.getElementById('slider'));
var mySwipe = new Swipe(document.getElementById('slider'));
+1 -1
View File
@@ -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;