Skip to content

Commit 491d7e2

Browse files
cmc3cndmethvin
authored andcommitted
Fix #11119: The curCSS function needs only 2 arguments
1 parent 77de76b commit 491d7e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/css.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jQuery.extend({
3535
get: function( elem, computed ) {
3636
if ( computed ) {
3737
// We should always get a number back from opacity
38-
var ret = curCSS( elem, "opacity", "opacity" );
38+
var ret = curCSS( elem, "opacity" );
3939
return ret === "" ? "1" : ret;
4040

4141
} else {
@@ -264,7 +264,7 @@ function getWidthOrHeight( elem, name, extra ) {
264264
}
265265

266266
// Fall back to computed then uncomputed css if necessary
267-
val = curCSS( elem, name, name );
267+
val = curCSS( elem, name );
268268
if ( val < 0 || val == null ) {
269269
val = elem.style[ name ];
270270
}
@@ -366,7 +366,7 @@ jQuery(function() {
366366
// Work around by temporarily setting element display to inline-block
367367
return jQuery.swap( elem, { "display": "inline-block" }, function() {
368368
if ( computed ) {
369-
return curCSS( elem, "margin-right", "marginRight" );
369+
return curCSS( elem, "margin-right" );
370370
} else {
371371
return elem.style.marginRight;
372372
}

0 commit comments

Comments
 (0)