@@ -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 () {
124124var 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()
0 commit comments