Skip to content
Permalink
Browse files
Speed up .css() by eliminating the middleman.
  • Loading branch information
mikesherov authored and dmethvin committed Apr 6, 2012
1 parent 590bcab commit 91a6d9d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 );
};
});

0 comments on commit 91a6d9d

Please sign in to comment.