mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
jQuery: data JSDoc
and removeData test suite
This commit is contained in:
@@ -898,6 +898,16 @@ function test_data() {
|
||||
$.data(document.getElementById("id"), "", "8").toUpperCase();
|
||||
}
|
||||
|
||||
function test_removeData() {
|
||||
$("span:eq(0)").text("" + $("div").data("test1"));
|
||||
$("div").data("test1", "VALUE-1");
|
||||
$("div").data("test2", "VALUE-2");
|
||||
$("span:eq(1)").text("" + $("div").data("test1"));
|
||||
$("div").removeData("test1");
|
||||
$("span:eq(2)").text("" + $("div").data("test1"));
|
||||
$("span:eq(3)").text("" + $("div").data("test2"));
|
||||
}
|
||||
|
||||
function test_dblclick() {
|
||||
$('#target').dblclick(function () {
|
||||
alert('Handler for .dblclick() called.');
|
||||
|
||||
Reference in New Issue
Block a user