Skip to content

Commit 3606e1c

Browse files
committed
Controlgroup: Don't use String.prototype.trim()
We still support IE 8, which doesn't have this method.
1 parent 4e39014 commit 3606e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/widgets/controlgroup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ return $.widget( "ui.controlgroup", {
234234
var result = {};
235235
$.each( classes, function( key ) {
236236
var current = instance.options.classes[ key ] || "";
237-
current = current.replace( controlgroupCornerRegex, "" ).trim();
237+
current = $.trim( current.replace( controlgroupCornerRegex, "" ) );
238238
result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " );
239239
} );
240240
return result;

0 commit comments

Comments
 (0)