diff options
author | jaubourg <j@ubourg.net> | 2011-04-08 17:41:14 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-04-08 17:41:14 +0200 |
commit | 2594a935de347088cecac987c3868e9bb5f35194 (patch) | |
tree | 38d443f692f96bb65e548e5f95260201f51a5e38 | |
parent | 7a1c6beab0d92b1419050eb468773bf1138254a6 (diff) | |
download | jquery-2594a935de347088cecac987c3868e9bb5f35194.tar.gz jquery-2594a935de347088cecac987c3868e9bb5f35194.zip |
Applies exception in Style Guidelines regarding objects and functions when they are the last argument of a function call.
-rw-r--r-- | src/ajax.js | 6 | ||||
-rw-r--r-- | src/ajax/jsonp.js | 2 | ||||
-rw-r--r-- | src/ajax/script.js | 4 | ||||
-rw-r--r-- | src/deferred.js | 4 | ||||
-rw-r--r-- | src/effects.js | 2 | ||||
-rw-r--r-- | src/support.js | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/src/ajax.js b/src/ajax.js index d94abd6fc..f0d722845 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -248,7 +248,7 @@ jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".sp jQuery.fn[ o ] = function( f ){ return this.bind( o, f ); }; -} ); +}); jQuery.each( [ "get", "post" ], function( i, method ) { jQuery[ method ] = function( url, data, callback, type ) { @@ -267,7 +267,7 @@ jQuery.each( [ "get", "post" ], function( i, method ) { dataType: type }); }; -} ); +}); jQuery.extend({ @@ -757,7 +757,7 @@ jQuery.extend({ // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); - } ); + }); } else { // If traditional, encode the "old" way (the way 1.3.2 or older diff --git a/src/ajax/jsonp.js b/src/ajax/jsonp.js index c70aeb7df..4fb094011 100644 --- a/src/ajax/jsonp.js +++ b/src/ajax/jsonp.js @@ -76,6 +76,6 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { // Delegate to script return "script"; } -} ); +}); })( jQuery ); diff --git a/src/ajax/script.js b/src/ajax/script.js index d3364ee6f..f7a918010 100644 --- a/src/ajax/script.js +++ b/src/ajax/script.js @@ -25,7 +25,7 @@ jQuery.ajaxPrefilter( "script", function( s ) { s.type = "GET"; s.global = false; } -} ); +}); // Bind script tag hack transport jQuery.ajaxTransport( "script", function(s) { @@ -84,6 +84,6 @@ jQuery.ajaxTransport( "script", function(s) { } }; } -} ); +}); })( jQuery ); diff --git a/src/deferred.js b/src/deferred.js index a25bdb7a5..02f92b26c 100644 --- a/src/deferred.js +++ b/src/deferred.js @@ -128,7 +128,7 @@ jQuery.extend({ } else { deferred[ handler ]( newDefer[ action ] ); } - } ); + }); }).promise(); }, // Get a promise for this deferred @@ -146,7 +146,7 @@ jQuery.extend({ } return obj; } - } ); + }); // Make sure only one callback list will be used deferred.done( failDeferred.cancel ).fail( deferred.cancel ); // Unexpose cancel diff --git a/src/effects.js b/src/effects.js index 5ff85d131..ad2ed3c97 100644 --- a/src/effects.js +++ b/src/effects.js @@ -428,7 +428,7 @@ jQuery.fx.prototype = { jQuery.each( [ "", "X", "Y" ], function (index, value) { elem.style[ "overflow" + value ] = options.overflow[index]; - } ); + }); } // Hide the element if the "hide" operation was done diff --git a/src/support.js b/src/support.js index d5625bed2..f039c7e87 100644 --- a/src/support.js +++ b/src/support.js @@ -105,7 +105,7 @@ jQuery.support = (function() { // bound event handlers (IE does this) support.noCloneEvent = false; div.detachEvent( "onclick", click ); - } ); + }); div.cloneNode( true ).fireEvent( "onclick" ); } |