Skip to content

Commit

Permalink
Applies exception in Style Guidelines regarding objects and functions…
Browse files Browse the repository at this point in the history
… when they are the last argument of a function call.
  • Loading branch information
jaubourg committed Apr 8, 2011
1 parent 7a1c6be commit 2594a93
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/ajax.js
Expand Up @@ -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 ) {
Expand All @@ -267,7 +267,7 @@ jQuery.each( [ "get", "post" ], function( i, method ) {
dataType: type
});
};
} );
});

jQuery.extend({

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ajax/jsonp.js
Expand Up @@ -76,6 +76,6 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
// Delegate to script
return "script";
}
} );
});

})( jQuery );
4 changes: 2 additions & 2 deletions src/ajax/script.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -84,6 +84,6 @@ jQuery.ajaxTransport( "script", function(s) {
}
};
}
} );
});

})( jQuery );
4 changes: 2 additions & 2 deletions src/deferred.js
Expand Up @@ -128,7 +128,7 @@ jQuery.extend({
} else {
deferred[ handler ]( newDefer[ action ] );
}
} );
});
}).promise();
},
// Get a promise for this deferred
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/effects.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/support.js
Expand Up @@ -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" );
}

Expand Down

0 comments on commit 2594a93

Please sign in to comment.