diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 65235e105..29da1c542 100644 --- a/jquery/jquery-tests.ts +++ b/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); diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index cdae1d8ec..4d650c98f 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -700,6 +700,7 @@ interface JQuery { PROPERTIES ***********/ length: number; + selector: string; [x: string]: HTMLElement; [x: number]: HTMLElement; diff --git a/mustache/mustache-tests.ts b/mustache/mustache-tests.ts index 744e85585..9b42131ef 100644 --- a/mustache/mustache-tests.ts +++ b/mustache/mustache-tests.ts @@ -5,4 +5,7 @@ var output = Mustache.render("{{title}} spends {{calc}}", view); var person; var template = "