mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Speed up .css() by eliminating the middleman.
This commit is contained in:
parent
590bcab245
commit
91a6d9dafc
@ -65,7 +65,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set the width or height on the element
|
// Set the width or height on the element
|
||||||
jQuery( elem ).css( type, value );
|
jQuery.style( elem, type, value );
|
||||||
}, type, value, arguments.length, null );
|
}, type, value, arguments.length, null );
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user