@@ -35,7 +35,7 @@ jQuery.extend({
35
35
get : function ( elem , computed ) {
36
36
if ( computed ) {
37
37
// We should always get a number back from opacity
38
- var ret = curCSS ( elem , "opacity" , "opacity" ) ;
38
+ var ret = curCSS ( elem , "opacity" ) ;
39
39
return ret === "" ? "1" : ret ;
40
40
41
41
} else {
@@ -264,7 +264,7 @@ function getWidthOrHeight( elem, name, extra ) {
264
264
}
265
265
266
266
// Fall back to computed then uncomputed css if necessary
267
- val = curCSS ( elem , name , name ) ;
267
+ val = curCSS ( elem , name ) ;
268
268
if ( val < 0 || val == null ) {
269
269
val = elem . style [ name ] ;
270
270
}
@@ -366,7 +366,7 @@ jQuery(function() {
366
366
// Work around by temporarily setting element display to inline-block
367
367
return jQuery . swap ( elem , { "display" : "inline-block" } , function ( ) {
368
368
if ( computed ) {
369
- return curCSS ( elem , "margin-right" , "marginRight" ) ;
369
+ return curCSS ( elem , "margin-right" ) ;
370
370
} else {
371
371
return elem . style . marginRight ;
372
372
}
0 commit comments