mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 09:55:50 +08:00
Add definition for selector property.
This commit is contained in:
@@ -2220,6 +2220,13 @@ function test_prop() {
|
||||
var title: string = $('option:selected', this).prop('title');
|
||||
}
|
||||
|
||||
|
||||
function test_selector() {
|
||||
var $main = $('#main');
|
||||
var $mainDivs = $('div', $main);
|
||||
return $mainDivs.selector == '#main div';
|
||||
}
|
||||
|
||||
function test_text() {
|
||||
var str = $("p:first").text();
|
||||
$("p:last").html(str);
|
||||
|
||||
1
jquery/jquery.d.ts
vendored
1
jquery/jquery.d.ts
vendored
@@ -700,6 +700,7 @@ interface JQuery {
|
||||
PROPERTIES
|
||||
***********/
|
||||
length: number;
|
||||
selector: string;
|
||||
[x: string]: HTMLElement;
|
||||
[x: number]: HTMLElement;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user