From 900b29629919b083ab508f60adf6a0f47721e77d Mon Sep 17 00:00:00 2001 From: Dick van den Brink Date: Wed, 21 Aug 2013 21:09:42 +0200 Subject: [PATCH 1/3] Update moment.d.ts Added isBefore/isAfter methods without parameters. According to the documentation it will default to the current time. see: http://momentjs.com/docs/#/query/is-before/ --- moment/moment.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moment/moment.d.ts b/moment/moment.d.ts index f2b5add84..523f5f6ea 100644 --- a/moment/moment.d.ts +++ b/moment/moment.d.ts @@ -124,6 +124,7 @@ interface Moment { daysInMonth(): number; isDST(): boolean; + isBefore(): boolean; isBefore(b: Moment): boolean; isBefore(b: string): boolean; isBefore(b: Number): boolean; @@ -135,6 +136,7 @@ interface Moment { isBefore(b: Date, granularity: string): boolean; isBefore(b: Array, granularity: string): boolean; + isAfter(): boolean; isAfter(b: Moment): boolean; isAfter(b: string): boolean; isAfter(b: Number): boolean; From c5de1aa62a6aef7c53f18641319411e3a4589104 Mon Sep 17 00:00:00 2001 From: Dick van den Brink Date: Wed, 21 Aug 2013 21:13:57 +0200 Subject: [PATCH 2/3] Update iscroll-lite.d.ts Fixed typo in iscroll-lite.d.ts --- iscroll/iscroll-lite.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iscroll/iscroll-lite.d.ts b/iscroll/iscroll-lite.d.ts index c00250386..c01f5db47 100644 --- a/iscroll/iscroll-lite.d.ts +++ b/iscroll/iscroll-lite.d.ts @@ -42,6 +42,6 @@ declare class iScroll { scrollTo(x: number, y: number, time: number, relative: boolean): void; scrollToElement(element: string, time: number): void; disable(): void; - enalbe(): void; + enable(): void; stop(): void; -} \ No newline at end of file +} From 884056be2338ca6fda78df77410877aeed88e6db Mon Sep 17 00:00:00 2001 From: Dick van den Brink Date: Wed, 21 Aug 2013 21:14:21 +0200 Subject: [PATCH 3/3] Update iscroll.d.ts Fixed typo in iscroll.d.ts --- iscroll/iscroll.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iscroll/iscroll.d.ts b/iscroll/iscroll.d.ts index ead4e8e4a..a702ebb5e 100644 --- a/iscroll/iscroll.d.ts +++ b/iscroll/iscroll.d.ts @@ -68,8 +68,8 @@ declare class iScroll { scrollToElement(element: string, time: number): void; scrollToPage(pageX: number, pageY: number, time: number): void; disable(): void; - enalbe(): void; + enable(): void; stop(): void; zoom(x: number, y: number, scale: number, time: number): void; isReady(): boolean; -} \ No newline at end of file +}