jQuery: JSDoc'd bind

This commit is contained in:
John Reilly
2014-02-18 16:52:02 +00:00
parent 4c2d50af48
commit 586de634a8
2 changed files with 33 additions and 3 deletions
+1 -1
View File
@@ -568,7 +568,7 @@ function test_bind() {
$("form").bind("submit", function (event) {
event.stopPropagation();
});
$("p").bind("myCustomEvent", function (e, myName, myValue) {
$("p").bind("myCustomEvent", function (e, myName?, myValue?) {
$(this).text(myName + ", hi there!");
$("span").stop().css("opacity", 1)
.text("myName = " + myName)