The cssHook from addGetHookIf wasn't actually getting added

This commit is contained in:
Timmy Willison
2013-09-11 08:41:48 -05:00
parent 48a3549bc5
commit 2e850fb802
3 changed files with 7 additions and 8 deletions

View File

@@ -370,7 +370,7 @@ jQuery.each([ "height", "width" ], function( i, name ) {
});
// Support: Android 2.3
addGetHookIf( jQuery.cssHooks.marginRight, support.reliableMarginRight,
jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
function ( elem, computed ) {
if ( computed ) {
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right