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 fcc99cd0f5464d8172405ad33b797e74d751b4c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery/jquery.js
@@ -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.
You can’t perform that action at this time.