mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
jQuery: uncommented tests
realised they could be used as long as param1 and param2 made optional
This commit is contained in:
1 parent
122ff1fb4c
commit
4c2d50af48
1 file changed
+3
-3
@@ -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