mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
jQuery: uncommented tests
realised they could be used as long as param1 and param2 made optional
This commit is contained in:
@@ -761,9 +761,9 @@ function test_trigger() {
|
||||
});
|
||||
$("#foo").trigger("click");
|
||||
|
||||
//$("#foo").on("custom", function (event, param1, param2) {
|
||||
// alert(param1 + "\n" + param2);
|
||||
//});
|
||||
$("#foo").on("custom", function (event, param1?, param2?) {
|
||||
alert(param1 + "\n" + param2);
|
||||
});
|
||||
$("#foo").trigger("custom", ["Custom", "Event"]);
|
||||
|
||||
$("button:first").click(function () {
|
||||
|
||||
Reference in New Issue
Block a user