Skip to content

Commit 1b3bc19

Browse files
HairyFotrkswedberg
authored andcommitted
jQuery.proxy, load-event: Fix two minor grammar issues. Closes jquerygh-389.
1 parent 26b0689 commit 1b3bc19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

entries/jQuery.proxy.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<p>This method is most useful for attaching event handlers to an element where the context is pointing back to a different object. Additionally, jQuery makes sure that even if you bind the function returned from <code>jQuery.proxy()</code> it will still unbind the correct function if passed the original.</p>
5050
<p>Be aware, however, that jQuery's event binding subsystem assigns a unique id to each event handling function in order to track it when it is used to specify the function to be unbound. The function represented by <code>jQuery.proxy()</code> is seen as a single function by the event subsystem, even when it is used to bind different contexts. To avoid unbinding the wrong handler, use a unique event namespace for binding and unbinding (e.g., <code>"click.myproxy1"</code>) rather than specifying the proxied function during unbinding.</p>
5151
<p><strong>As of jQuery 1.6</strong>, any number of additional arguments may supplied to <code>$.proxy()</code>, and they will be passed to the function whose context will be changed.</p>
52-
<p><strong>As of jQuery 1.9</strong>, when the <code>context</code> is <code>null</code> or <code>undefined</code> the the proxied function will be called with the same <code>this</code> object as the proxy was called with. This allows <code>$.proxy()</code> to be used to partially apply the arguments of a function without changing the context.</p>
52+
<p><strong>As of jQuery 1.9</strong>, when the <code>context</code> is <code>null</code> or <code>undefined</code> the proxied function will be called with the same <code>this</code> object as the proxy was called with. This allows <code>$.proxy()</code> to be used to partially apply the arguments of a function without changing the context.</p>
5353
</longdesc>
5454
<example>
5555
<desc>Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.</desc>

entries/load-event.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ $( window ).load(function() {
6161
]]></code>
6262
</example>
6363
<example>
64-
<desc>Add the class bigImg to all images with height greater then 100 upon each image load.</desc>
64+
<desc>Add the class bigImg to all images with height greater than 100 upon each image load.</desc>
6565
<code><![CDATA[
6666
$( "img.userIcon" ).load(function() {
6767
if ( $( this ).height() > 100) {

0 commit comments

Comments
 (0)