mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added some .css() fixes.
This commit is contained in:
parent
57403c1be2
commit
f4c67b7c5a
8
jquery/jquery.js
vendored
8
jquery/jquery.js
vendored
@ -308,7 +308,7 @@ jQuery.fn = jQuery.prototype = {
|
|||||||
* @param Object value The value to set the property to.
|
* @param Object value The value to set the property to.
|
||||||
*/
|
*/
|
||||||
css: function( key, value ) {
|
css: function( key, value ) {
|
||||||
return this.attr( key, value, "css" );
|
return this.attr( key, value, "curCSS" );
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1177,7 +1177,11 @@ jQuery.extend({
|
|||||||
|
|
||||||
return p == "height" ? oHeight : oWidth;
|
return p == "height" ? oHeight : oWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return jQuery.curCSS( e, p );
|
||||||
|
},
|
||||||
|
|
||||||
|
curCSS: function(e,p) {
|
||||||
var r;
|
var r;
|
||||||
|
|
||||||
if (e.style[p])
|
if (e.style[p])
|
||||||
|
Loading…
Reference in New Issue
Block a user