Speed up .css() by eliminating the middleman.

This commit is contained in:
Mike Sherov 2012-03-10 13:30:07 -05:00 committed by Dave Methvin
parent 590bcab245
commit 91a6d9dafc

View File

@ -65,7 +65,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
}
// Set the width or height on the element
jQuery( elem ).css( type, value );
jQuery.style( elem, type, value );
}, type, value, arguments.length, null );
};
});