Skip to content

Commit 72985fb

Browse files
committed
Core: Don't use $.style since it doesn't exist in jQuery 1.3.2. Fixes #6196 - outerWidth() setter broken with jQuery 1.3.2.
1 parent af582b9 commit 72985fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ $.each( [ "Width", "Height" ], function( i, name ) {
158158
}
159159

160160
return this.each(function() {
161-
$.style( this, type, reduce( this, size ) + "px" );
161+
$( this ).css( type, reduce( this, size ) + "px" );
162162
});
163163
};
164164

@@ -168,7 +168,7 @@ $.each( [ "Width", "Height" ], function( i, name ) {
168168
}
169169

170170
return this.each(function() {
171-
$.style( this, type, reduce( this, size, true, margin ) + "px" );
171+
$( this).css( type, reduce( this, size, true, margin ) + "px" );
172172
});
173173
};
174174
});

0 commit comments

Comments
 (0)