Add definition for selector property.

This commit is contained in:
Sean Hill
2013-02-15 13:09:07 -06:00
parent 24dcdc3db0
commit 987e000332
2 changed files with 8 additions and 0 deletions

View File

@@ -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
View File

@@ -700,6 +700,7 @@ interface JQuery {
PROPERTIES
***********/
length: number;
selector: string;
[x: string]: HTMLElement;
[x: number]: HTMLElement;