update jQuery 1.9 css method

This commit is contained in:
Boris Yankov
2013-01-17 02:46:44 +02:00
parent 9ca841da28
commit 79eccdc952
2 changed files with 8 additions and 5 deletions
+6 -3
View File
@@ -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;
+2 -2
View File
@@ -1,4 +1,4 @@
/// <reference path="jquery-1.8.d.ts" />
/// <reference path="jquery-1.9.d.ts" />
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() {