From 3606e1c33a5838cb6cb55a32de0f11984f84663e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 31 Aug 2016 16:29:54 -0400 Subject: [PATCH] Controlgroup: Don't use `String.prototype.trim()` We still support IE 8, which doesn't have this method. --- ui/widgets/controlgroup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/controlgroup.js b/ui/widgets/controlgroup.js index a4ea251a1..6f357948d 100644 --- a/ui/widgets/controlgroup.js +++ b/ui/widgets/controlgroup.js @@ -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; -- 2.39.5