jQuery: uncommented tests

realised they could be used as long as param1 and param2 made optional
This commit is contained in:
John Reilly
2014-02-14 16:48:11 +00:00
parent 122ff1fb4c
commit 4c2d50af48
+3 -3
View File
@@ -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 () {