mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Update jquery.d.ts: added .removeData()
This commit is contained in:
@@ -1136,6 +1136,13 @@ function test_jQuery_removeData() {
|
||||
$("span:eq(3)").text("" + jQuery.data(div, "test2"));
|
||||
}
|
||||
|
||||
function test_removeDataAll() {
|
||||
var el = $("div");
|
||||
el.data("test1", "VALUE-1");
|
||||
el.data("test2", "VALUE-2");
|
||||
el.removeData();
|
||||
}
|
||||
|
||||
function test_dblclick() {
|
||||
$('#target').dblclick(function () {
|
||||
alert('Handler for .dblclick() called.');
|
||||
|
||||
Vendored
+4
@@ -1581,6 +1581,10 @@ interface JQuery {
|
||||
* @param list An array of strings naming the pieces of data to delete.
|
||||
*/
|
||||
removeData(list: string[]): JQuery;
|
||||
/**
|
||||
* Remove all previously-stored piece of data.
|
||||
*/
|
||||
removeData(): JQuery;
|
||||
|
||||
/**
|
||||
* Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.
|
||||
|
||||
Reference in New Issue
Block a user