- var options = name, isFunction = jQuery.isFunction( value );
-
- // ignore negative width and height values
- if ( (name == 'width' || name == 'height') && parseFloat(value) < 0 )
- value = undefined;
-
- if ( typeof name === "string" ) {
- // Are we setting the style?
- if ( value === undefined ) {
- return this.length ?
- jQuery.css( this[0], name ) :
- null;
-
- // Convert name, value params to options hash format
- } else {
- options = {};
- options[ name ] = value;
+ return access( this, name, value, true, function( elem, name, value ) {
+ if (value === undefined) {
+ return jQuery.css( elem, name );