Skip to content
Permalink
Browse files
Fix for improper object iteration in jQuery.css method
  • Loading branch information
brandonaaron committed Nov 15, 2006
1 parent 044d47a commit fcc99cd
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1472,7 +1472,7 @@ jQuery.extend({
if ( p == "height" || p == "width" ) {
var old = {}, oHeight, oWidth, d = ["Top","Bottom","Right","Left"];

for ( var i in d ) {
for ( var i=0; i<d.length; i++ ) {
old["padding" + d[i]] = 0;
old["border" + d[i] + "Width"] = 0;
}

0 comments on commit fcc99cd

Please sign in to comment.