Commit 38fa3cfc authored by Jörn Zaefferer's avatar Jörn Zaefferer

Fixed documentation for bind(String, Function) - added a small fix for the first example

parent 998d1d88
...@@ -3167,7 +3167,7 @@ jQuery.macros = { ...@@ -3167,7 +3167,7 @@ jQuery.macros = {
* alert( $(this).text() ); * alert( $(this).text() );
* } ) * } )
* @before <p>Hello</p> * @before <p>Hello</p>
* @result Hello * @result alert("Hello")
* *
* @example $("form").bind( "submit", function() { return false; } ) * @example $("form").bind( "submit", function() { return false; } )
* @desc Cancel a default action and prevent it from bubbling by returning false * @desc Cancel a default action and prevent it from bubbling by returning false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment