From 79eccdc9522e7c4e63622775dee49791c80de969 Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Thu, 17 Jan 2013 02:46:44 +0200 Subject: [PATCH] update jQuery 1.9 css method --- jquery/{jquery-1.8.d.ts => jquery-1.9.d.ts} | 9 ++++++--- jquery/jquery-tests.ts | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) rename jquery/{jquery-1.8.d.ts => jquery-1.9.d.ts} (95%) diff --git a/jquery/jquery-1.8.d.ts b/jquery/jquery-1.9.d.ts similarity index 95% rename from jquery/jquery-1.8.d.ts rename to jquery/jquery-1.9.d.ts index 4e617c961..2bdd9f689 100644 --- a/jquery/jquery-1.8.d.ts +++ b/jquery/jquery-1.9.d.ts @@ -13,7 +13,7 @@ See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -// Typing for the jQuery library, version 1.7.x +// Typing for the jQuery library, version 1.9.x /* Interface for the AJAX setting that will configure the AJAX request @@ -378,8 +378,11 @@ interface JQuery { /*** CSS ****/ - css(propertyName: string, value?: any): any; - css(propertyName: any, value?: any): any; + css(propertyName: string): any; + css(propertyNames: string[]): any; + css(properties: any): any; + css(propertyName: string, value: any): any; + css(propertyName: any, value: any): any; height(): number; height(value: number): JQuery; diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 998997b2c..d45a6ee02 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -1,4 +1,4 @@ -/// +/// function test_add() { $("p").add("div").addClass("widget"); @@ -829,9 +829,9 @@ function test_css() { height: function (index, value) { return parseFloat(value) * 1.2; } - }); }); + var dims = $("#box").css([ "width", "height", "backgroundColor" ]); } function test_cssHooks() {