mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Remove jQuery.die and jQuery.live tests
This commit is contained in:
@@ -1035,27 +1035,6 @@ function test_detach() {
|
||||
});
|
||||
}
|
||||
|
||||
/* Not existing, but not recommended either
|
||||
function test_die() {
|
||||
function aClick() {
|
||||
$("div").show().fadeOut("slow");
|
||||
}
|
||||
$("#bind").click(function () {
|
||||
$("#theone").live("click", aClick)
|
||||
.text("Can Click!");
|
||||
});
|
||||
$("#unbind").click(function () {
|
||||
$("#theone").die("click", aClick)
|
||||
.text("Does nothing...");
|
||||
});
|
||||
$("p").die();
|
||||
$("p").die("click");
|
||||
var foo = function () { };
|
||||
$("p").live("click", foo);
|
||||
$("p").die("click", foo);
|
||||
}
|
||||
*/
|
||||
|
||||
function test_each() {
|
||||
$.each([52, 97], function (index, value) {
|
||||
alert(index + ': ' + value);
|
||||
@@ -1978,16 +1957,6 @@ function test_length() {
|
||||
}).trigger('click');
|
||||
}
|
||||
|
||||
/* deprecated
|
||||
function test_live() {
|
||||
$(selector).live(events, data, handler);
|
||||
$(document).delegate(selector, events, data, handler);
|
||||
$(document).on(events, selector, data, handler);
|
||||
$("a.offsite").live("click", function () { alert("Goodbye!"); });
|
||||
$(document).delegate("a.offsite", "click", function () { alert("Goodbye!"); });
|
||||
$(document).on("click", "a.offsite", function () { alert("Goodbye!"); });
|
||||
} */
|
||||
|
||||
function test_load() {
|
||||
$('#result').load('ajax/test.html');
|
||||
$('#result').load('ajax/test.html', function () {
|
||||
|
||||
Reference in New Issue
Block a user