Controlgroup: Don't use String.prototype.trim()

We still support IE 8, which doesn't have this method.
This commit is contained in:
Scott González 2016-08-31 16:29:54 -04:00
parent 4e39014803
commit 3606e1c33a

View File

@ -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;