8000 removed space between function and parenthesis · GitObjects/api.jquery.com@4a53e25 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a53e25

Browse files
committed
removed space between function and parenthesis
1 parent 76c21d4 commit 4a53e25

22 files changed

+67
-66
lines changed

entries/each.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ $( "li" ).addClass( "bar" );
4444
<example>
4545
<desc>Iterate over three divs and sets their color property.</desc>
4646
<code><![CDATA[
47-
$( document.body ).click(function () {
48-
$( "div" ).each(function ( i ) {
47+
$( document.body ).click(function() {
48+
$( "div" ).each(function( i ) {
4949
if ( this.style.color != "blue" ) {
5050
this.style.color = "blue";
5151
} else {

entries/empty.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $( ".hello" ).empty();
3131
<example>
3232
<desc>Removes all child nodes (including text nodes) from all paragraphs</desc>
3333
<code><![CDATA[
34-
$( "button" ).click(function () {
34+
$( "button" ).click(function() {
3535
$( "p" ).empty();
3636
});
3737
]]></code>

entries/fadeIn.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $( "#clickme" ).click(function() {
5050
<example>
5151
<desc>Animates hidden divs to fade in one by one, completing each animation within 600 milliseconds.</desc>
5252
<code><![CDATA[
53-
$( document.body ).click(function () {
53+
$( document.body ).click(function() {
5454
$( "div:hidden:first" ).fadeIn( "slow" );
5555
});
5656
]]></code>
@@ -86,8 +86,8 @@ $( document.body ).click(function () {
8686
<example>
8787
<desc>Fades a red block in over the text. Once the animation is done, it quickly fades in more text on top.</desc>
8888
<code><![CDATA[
89-
$( "a" ).click(function () {
90-
$( "div" ).fadeIn( 3000, function () {
89+
$( "a" ).click(function() {
90+
$( "div" ).fadeIn( 3000, function() {
9191
$( "span" ).fadeIn( 100 );
9292
});
9393
return false;

entries/fadeOut.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ $( "#clickme" ).click(function() {
5555
<example>
5656
<desc>Animates all paragraphs to fade out, completing the animation within 600 milliseconds.</desc>
5757
<code><![CDATA[
58-
$( "p" ).click(function () {
58+
$( "p" ).click(function() {
5959
$( "p" ).fadeOut( "slow" );
6060
});
6161
]]></code>
@@ -75,15 +75,15 @@ $( "p" ).click(function () {
7575
<example>
7676
<desc>Fades out spans in one section that you click on.</desc>
7777
<code><![CDATA[
78-
$( "span" ).click(function () {
79-
$( this ).fadeOut( 1000, function () {
78+
$( "span" ).click(function() {
79+
$( this ).fadeOut( 1000, function() {
8080
$( "div" ).text( "'" + $( this ).text() + "' has faded!" );
8181
$( this ).remove();
8282
});
8383
});
84-
$( "span" ).hover(function () {
84+
$( "span" ).hover(function() {
8585
$( this ).addClass( "hilite" );
86-
}, function () {
86+
}, function() {
8787
$( this ).removeClass( "hilite" );
8888
});
8989
]]></code>

entries/fadeTo.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $( "#clickme" ).click(function() {
6262
<example>
6363
<desc>Animates first paragraph to fade to an opacity of 0.33 (33%, about one third visible), completing the animation within 600 milliseconds.</desc>
6464
<code><![CDATA[
65-
$( "p:first" ).click(function () {
65+
$( "p:first" ).click(function() {
6666
$( this ).fadeTo( "slow", 0.33 );
6767
});
6868
]]></code>
@@ -79,7 +79,7 @@ Compare to this one that won't fade.
7979
<example>
8080
<desc>Fade div to a random opacity on each click, completing the animation within 200 milliseconds.</desc>
8181
<code><![CDATA[
82-
$( "div" ).click(function () {
82+
$( "div" ).click(function() {
8383
$( this ).fadeTo( "fast", Math.random() );
8484
});
8585
]]></code>
@@ -124,7 +124,7 @@ $( "div" ).click(function () {
124124
var getPos = function( n ) {
125125
return ( Math.floor( n ) * 90) + "px";
126126
};
127-
$( "p" ).each(function ( n ) {
127+
$( "p" ).each(function( n ) {
128128
var r = Math.floor( Math.random() * 3 );
129129
var tmp = $( this ).text();
130130
$( this ).text( $( "p:eq(" + r + ")" ).text() );
@@ -136,7 +136,7 @@ $( "div" ).each(function( n ) {
136136
})
137137
.css( "cursor", "pointer" )
138138
.click( function() {
139-
$( this ).fadeTo( 250, 0.25, function () {
139+
$( this ).fadeTo( 250, 0.25, function() {
140140
$( this )
141141
.css( "cursor", "" )
142142
.prev()

entries/fadeToggle.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
$( "button:first" ).click(function() {
3030
$( "p:first" ).fadeToggle( "slow", "linear" );
3131
});
32-
$( "button:last" ).click(function () {
33-
$( "p:last" ).fadeToggle( "fast", function () {
32+
$( "button:last" ).click(function() {
33+
$( "p:last" ).fadeToggle( "fast", function() {
3434
$( "#log" ).append( "<div>finished</div>" );
3535
});
3636
});

entries/file-selector.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<code><![CDATA[
1616
var input = $( "input:file" ).css({ background:"yellow", border:"3px red solid" });
1717
$( "div" ).text( "For this type jQuery found " + input.length + "." ).css( "color", "red" );
18-
$( "form" ).submit(function () {
18+
$( "form" ).submit(function() {
1919
return false;
2020
}); // so it won't submit
2121
]]></code>

entries/filter.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ $( "li" )
106106
<code><![CDATA[
107107
$( "div" )
108108
.css( "background", "#b4b0da" )
109-
.filter(function ( index ) {
109+
.filter(function( index ) {
110110
return index == 1 || $( this ).attr( "id" ) == "fourth";
111111
})
112112
.css( "border", "3px double red" );

entries/finish.xml

Original file line numberDiff line numberDiff line change
@@ -23,37 +23,37 @@ var horiz = $( "#path" ).width() - 20,
2323
vert = $( "#path" ).height() - 20;
2424
2525
var btns = {
26-
bstt: function () {
26+
bstt: function() {
2727
$( "div.box" ).stop( true, true );
2828
},
29-
bs: function () {
29+
bs: function() {
3030
$( "div.box" ).stop();
3131
},
32-
bsft: function () {
32+
bsft: function() {
3333
$( "div.box" ).stop( false, true );
3434
},
35-
bf: function () {
35+
bf: function() {
3636
$( "div.box" ).finish();
3737
},
38-
bcf: function () {
38+
bcf: function() {
3939
$( "div.box" ).clearQueue().finish();
4040
},
41-
bsff: function () {
41+
bsff: function() {
4242
$( "div.box" ).stop( false, false );
4343
},
44-
bstf: function () {
44+
bstf: function() {
4545
$( "div.box" ).stop( true, false );
4646
},
47-
bcs: function () {
47+
bcs: function() {
4848
$( "div.box" ).clearQueue().stop();
4949
}
5050
};
5151
52-
$( "button.b" ).on( "click", function () {
52+
$( "button.b" ).on( "click", function() {
5353
btns[ this.id ]();
5454
});
5555
56-
$( "#go" ).on( "click", function () {
56+
$( "#go" ).on( "click", function() {
5757
$( ".box" )
5858
.clearQueue()
5959
.stop()
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<code><![CDATA[
1515
$( "div span:first-child" )
1616
.css( "text-decoration", "underline" )
17-
.hover(function () {
17+
.hover(function() {
1818
$( this ).addClass( "sogreen" );
19-
}, function () {
19+
}, function() {
2020
$( this ).removeClass( "sogreen" );
21-
});
21+
});
2222
]]></code>
2323
<css><![CDATA[
2424
span {