mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add tests for jQuery failsafe syntax
This commit is contained in:
@@ -2511,10 +2511,10 @@ function test_jQuery() {
|
||||
$foo.triggerHandler('eventName');
|
||||
$("div > p").css("border", "1px solid gray");
|
||||
$("input:radio", document.forms[0]);
|
||||
var xml: any;
|
||||
var xml: any;
|
||||
$("div", xml.responseXML);
|
||||
$(document.body).css("background", "black");
|
||||
var myForm: any;
|
||||
var myForm: any;
|
||||
$(myForm.elements).hide();
|
||||
$('<p id="test">My <em>new</em> text</p>').appendTo('body');
|
||||
$('<img />');
|
||||
@@ -2537,6 +2537,10 @@ function test_jQuery() {
|
||||
}
|
||||
}).appendTo("body");
|
||||
jQuery(function ($) {
|
||||
// Your code using failsafe $ alias here...
|
||||
});
|
||||
jQuery(document).ready(function ($) {
|
||||
// Your code using failsafe $ alias here...
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user