Skip to content

Commit cec12df

Browse files
tomfuerteskswedberg
authored andcommitted
one(): Fix description of behavior for delegated .one() events. Closes jquery#489
1 parent 517615b commit cec12df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/one.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $( "#foo" ).one( "click", function() {
5050
alert( "This will be displayed only once." );
5151
});
5252
$( "body" ).one( "click", "#foo", function() {
53-
alert( "This displays if #foo is the first thing clicked in the body." );
53+
alert( "This displays the first time #foo is clicked in the body." );
5454
});
5555
</code></pre>
5656
<p>After the code is executed, a click on the element with ID <code>foo</code> will display the alert. Subsequent clicks will do nothing. This code is equivalent to:</p>

0 commit comments

Comments
 (0)