mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
$().css("foo") now returns the value of $.css("foo") instead of setting to null.
This commit is contained in:
parent
56992c6ad9
commit
4ab5a88bc4
5
jquery/jquery.js
vendored
5
jquery/jquery.js
vendored
@ -67,13 +67,14 @@ function $(a,c) {
|
||||
},
|
||||
|
||||
css: function(a,b) {
|
||||
return this.each(function(){
|
||||
return a.constructor != String || b ?
|
||||
this.each(function(){
|
||||
if ( !b )
|
||||
for ( var j in a )
|
||||
$.attr(this.style,j,a[j]);
|
||||
else
|
||||
$.attr(this.style,a,b);
|
||||
});
|
||||
}) : $.css( this.get(0), a );
|
||||
},
|
||||
toggle: function() {
|
||||
return this.each(function(){
|
||||
|
Loading…
Reference in New Issue
Block a user