From 4c2d50af485fbe47178284ed7291fa4c57110e3c Mon Sep 17 00:00:00 2001 From: John Reilly Date: Fri, 14 Feb 2014 16:48:11 +0000 Subject: [PATCH] jQuery: uncommented tests realised they could be used as long as param1 and param2 made optional --- jquery/jquery-tests.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index a6249b9f3..57ba838ee 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -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 () {