mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
jQuery: JSDoc'd bind
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user