Permalink
Browse files

Add definition for selector property.

  • Loading branch information...
1 parent 24dcdc3 commit 987e0003329cfd0c7723c4621d4c42d850b74d25 @seanski seanski committed Feb 15, 2013
Showing with 8 additions and 0 deletions.
  1. +7 −0 jquery/jquery-tests.ts
  2. +1 −0 jquery/jquery.d.ts
View
7 jquery/jquery-tests.ts
@@ -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);
View
1 jquery/jquery.d.ts
@@ -700,6 +700,7 @@ interface JQuery {
PROPERTIES
***********/
length: number;
+ selector: string;
[x: string]: HTMLElement;
[x: number]: HTMLElement;

0 comments on commit 987e000

Please sign in to comment.