The cssHook from addGetHookIf wasn't actually getting added

Conflicts:
	src/css.js
This commit is contained in:
Timmy Willison
2013-09-11 08:41:48 -05:00
parent baa8dff023
commit 577df98524
3 changed files with 6 additions and 7 deletions

View File

@@ -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 );