mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 07:55:21 -05:00
The cssHook from addGetHookIf wasn't actually getting added
Conflicts: src/css.js
This commit is contained in:
@@ -191,7 +191,7 @@ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( me
|
||||
// getComputedStyle returns percent when specified for top/left/bottom/right
|
||||
// rather than make the css module depend on the offset module, we just check for it here
|
||||
jQuery.each( [ "top", "left" ], function( i, prop ) {
|
||||
addGetHookIf( jQuery.cssHooks[ prop ], support.pixelPosition,
|
||||
jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
|
||||
function ( elem, computed ) {
|
||||
if ( computed ) {
|
||||
computed = curCSS( elem, prop );
|
||||
|
||||
Reference in New Issue
Block a user