Skip to content

Commit d347186

Browse files
ericcarrawaykswedberg
authored andcommitted
Docs(entries): Fix typos.
Closes gh-827.
1 parent da5ec33 commit d347186

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

entries/contents.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $( "p" )
5050
]]></html>
5151
</example>
5252
<example>
53-
<desc>Change the background colour of links inside of an iframe.</desc>
53+
<desc>Change the background color of links inside of an iframe.</desc>
5454
<code><![CDATA[
5555
$( "#frameDemo" ).contents().find( "a" ).css( "background-color", "#BADA55" );
5656
]]></code>

entries/jQuery.ajax.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ jqxhr.always(function() {
318318
<p><strong>As of jQuery 1.5</strong>, jQuery's Ajax implementation includes <a href="/jQuery.ajaxPrefilter/">prefilters</a>, <a href="/jQuery.ajaxTransport/">transports</a>, and converters that allow you to extend Ajax with a great deal of flexibility.</p>
319319

320320
<h4 id="using-converters">Using Converters</h4>
321-
<p><code>$.ajax()</code> converters support mapping data types to other data types. If, however, you want to map a custom data type to a known type (e.g <code>json</code>), you must add a correspondance between the response Content-Type and the actual data type using the <code>contents</code> option:</p>
321+
<p><code>$.ajax()</code> converters support mapping data types to other data types. If, however, you want to map a custom data type to a known type (e.g <code>json</code>), you must add a correspondence between the response Content-Type and the actual data type using the <code>contents</code> option:</p>
322322
<pre><code>
323323
$.ajaxSetup({
324324
contents: {
@@ -332,7 +332,7 @@ $.ajaxSetup({
332332
}
333333
});
334334
</code></pre>
335-
<p>This extra object is necessary because the response Content-Types and data types never have a strict one-to-one correspondance (hence the regular expression).</p>
335+
<p>This extra object is necessary because the response Content-Types and data types never have a strict one-to-one correspondence (hence the regular expression).</p>
336336
<p>To convert from a supported type (e.g <code>text</code>, <code>json</code>) to a custom data type and back again, use another pass-through converter:</p>
337337
<pre><code>
338338
$.ajaxSetup({

entries/jQuery.ajaxTransport.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function( status, statusText, responses, headers ) {}
4848
<ul>
4949
<li><code>status</code> is the HTTP status code of the response, like 200 for a typical success, or 404 for when the resource is not found.</li>
5050
<li><code>statusText</code> is the statusText of the response.</li>
51-
<li><code>responses</code> (Optional) is An object containing dataType/value that contains the response in all the formats the transport could provide (for instance, a native XMLHttpRequest object would set reponses to <code>{ xml: XMLData, text: textData }</code> for a response that is an XML document)</li>
51+
<li><code>responses</code> (Optional) is An object containing dataType/value that contains the response in all the formats the transport could provide (for instance, a native XMLHttpRequest object would set responses to <code>{ xml: XMLData, text: textData }</code> for a response that is an XML document)</li>
5252
<li><code>headers</code> (Optional) is a string containing all the response headers if the transport has access to them (akin to what <code>XMLHttpRequest.getAllResponseHeaders()</code> would provide).</li>
5353
</ul>
5454
<p>Just like prefilters, a transport's factory function can be attached to a specific dataType:</p>

entries/on.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<longdesc>
3535
<p>The <code>.on()</code> method attaches event handlers to the currently selected set of elements in the jQuery object. As of jQuery 1.7, the <code>.on()</code> method provides all functionality required for attaching event handlers. For help in converting from older jQuery event methods, see <a href="/bind/"><code>.bind()</code></a>, <a href="/delegate/"><code>.delegate()</code></a>, and <a href="/live/"><code>.live()</code></a>. To remove events bound with <code>.on()</code>, see <a href="/off/"><code>.off()</code></a>. To attach an event that runs only once and then removes itself, see <a href="/one/"><code>.one()</code></a></p>
3636
<h2 id="event-names">Event names and namespaces</h2>
37-
<p>Any event names can be used for the <code>events</code> argument. jQuery will pass through the browser's standard JavaScript event types, calling the <code>handler</code> function when the browser generates events due to user actions such as <code>click</code>. In addition, the <a href="/trigger/"><code>.trigger()</code></a> method can trigger both standard browser event names and custom event names to call attached handlers. Event names should only contain alphanumerics, underscore, and colon chraracters.</p>
37+
<p>Any event names can be used for the <code>events</code> argument. jQuery will pass through the browser's standard JavaScript event types, calling the <code>handler</code> function when the browser generates events due to user actions such as <code>click</code>. In addition, the <a href="/trigger/"><code>.trigger()</code></a> method can trigger both standard browser event names and custom event names to call attached handlers. Event names should only contain alphanumerics, underscore, and colon characters.</p>
3838
<p>An event name can be qualified by <em>event namespaces</em> that simplify removing or triggering the event. For example, <code>"click.myPlugin.simple"</code> defines both the myPlugin and simple namespaces for this particular click event. A click event handler attached via that string could be removed with <code>.off("click.myPlugin")</code> or <code>.off("click.simple")</code> without disturbing other click handlers attached to the elements. Namespaces are similar to CSS classes in that they are not hierarchical; only one name needs to match. Namespaces beginning with an underscore are reserved for jQuery's use.</p>
3939
<p>In the second form of <code>.on()</code>, the <code>events</code> argument is a plain object. The keys are strings in the same form as the <code>events</code> argument with space-separated event type names and optional namespaces. The value for each key is a function (or <code>false</code> value) that is used as the <code>handler</code> instead of the final argument to the method. In other respects, the two forms are identical in their behavior as described below.</p>
4040
<h2 id="direct-and-delegated-events">Direct and delegated events</h2>

0 commit comments

Comments
 (0)