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() {