Skip to content

Commit 9af27d6

Browse files
tcoughlin3AurelioDeRosa
authored andcommitted
one(): Add named parameter to example
Fixes #1008 Closes #1016
1 parent 13c6d7a commit 9af27d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/one.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $( "#foo" ).on( "click", function( event ) {
6060
<p>In other words, explicitly calling <code>.off()</code> from within a regularly-bound handler has exactly the same effect.</p>
6161
<p>If the first argument contains more than one space-separated event types, the event handler is called <em>once for each event type</em>.</p>
6262
<pre><code>
63-
$( "#foo" ).one( "click mouseover", function() {
63+
$( "#foo" ).one( "click mouseover", function( event ) {
6464
alert( "The " + event.type + " event happened!" );
6565
});
6666
</code></pre>

0 commit comments

Comments
 (0)