From da733abd6e3681e40be02160d7b8aa7dcaed02cb Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Sun, 20 Jan 2013 07:41:53 +0200 Subject: [PATCH] Add jQuery Mobile initializePage method --- jquerymobile/jquerymobile-tests.ts | 4 ++++ jquerymobile/jquerymobile.d.ts | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/jquerymobile/jquerymobile-tests.ts b/jquerymobile/jquerymobile-tests.ts index 75c9614473..bedec85bb5 100644 --- a/jquerymobile/jquerymobile-tests.ts +++ b/jquerymobile/jquerymobile-tests.ts @@ -251,4 +251,8 @@ function test_listview() { $.mobile.listview.prototype.options.theme = "a"; $('#mylist').listview(); $('#mylist').listview('refresh'); +} + +function test_misc() { + $.mobile.initializePage(); } \ No newline at end of file diff --git a/jquerymobile/jquerymobile.d.ts b/jquerymobile/jquerymobile.d.ts index 4f8c68ccb3..4be7faa9e4 100644 --- a/jquerymobile/jquerymobile.d.ts +++ b/jquerymobile/jquerymobile.d.ts @@ -277,11 +277,12 @@ interface LoadPageOptions { interface JQueryMobile extends JQueryMobileOptions { changePage(to: any, options?: ChangePageOptions): void; + initializePage(): void; loadPage(url: any, options?: LoadPageOptions): void; - loading(command: string, options?): void; - + loading(command: string, options? ): void; + base; - silentScroll(yPos: number):void; + silentScroll(yPos: number): void; activePage; options: JQueryMobileOptions;