mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
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.
This commit is contained in:
4
ui/jquery.ui.core.js
vendored
4
ui/jquery.ui.core.js
vendored
@@ -158,7 +158,7 @@ $.each( [ "Width", "Height" ], function( i, name ) {
|
||||
}
|
||||
|
||||
return this.each(function() {
|
||||
$.style( this, type, reduce( this, size ) + "px" );
|
||||
$( this ).css( type, reduce( this, size ) + "px" );
|
||||
});
|
||||
};
|
||||
|
||||
@@ -168,7 +168,7 @@ $.each( [ "Width", "Height" ], function( i, name ) {
|
||||
}
|
||||
|
||||
return this.each(function() {
|
||||
$.style( this, type, reduce( this, size, true, margin ) + "px" );
|
||||
$( this).css( type, reduce( this, size, true, margin ) + "px" );
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user