mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Controlgroup: Don't use String.prototype.trim()
We still support IE 8, which doesn't have this method.
This commit is contained in:
parent
4e39014803
commit
3606e1c33a
@ -234,7 +234,7 @@ return $.widget( "ui.controlgroup", {
|
||||
var result = {};
|
||||
$.each( classes, function( key ) {
|
||||
var current = instance.options.classes[ key ] || "";
|
||||
current = current.replace( controlgroupCornerRegex, "" ).trim();
|
||||
current = $.trim( current.replace( controlgroupCornerRegex, "" ) );
|
||||
result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " );
|
||||
} );
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user