Skip to content

Commit 65f4b06

Browse files
committed
fixed spacing around function in 'each' entry
1 parent eb8001a commit 65f4b06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entries/each.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $( document.body ).click(function () {
7272
<example>
7373
<desc>To access a jQuery object instead of the regular DOM element, use <code>$( this )</code>. For example:</desc>
7474
<code><![CDATA[
75-
$( "span" ).click(function () {
75+
$( "span" ).click(function() {
7676
$( "li" ).each(function() {
7777
$( this ).toggleClass( "example" );
7878
});
@@ -104,8 +104,8 @@ To do list: <span>(click here to change)</span>
104104
<example>
105105
<desc>Use "return" to break out of each() loops early.</desc>
106106
<code><![CDATA[
107-
$( "button" ).click(function () {
108-
$( "div" ).each(function ( index, domEle ) {
107+
$( "button" ).click(function() {
108+
$( "div" ).each(function( index, domEle ) {
109109
// domEle == this
110110
$( domEle ).css( "backgroundColor", "yellow" );
111111
if ( $( this ).is( "#stop" ) ) {

0 commit comments

Comments
 (0)