Update jquery.d.ts: added .removeData()

This commit is contained in:
Jan Bevers
2015-10-07 14:10:22 +02:00
parent e9be3cecf8
commit 40d7a3e0b4
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -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.');
+4
View File
@@ -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.