mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-01 11:50:54 +08:00
update jQuery 1.9 css method
This commit is contained in:
+6
-3
@@ -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;
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user