diff options
author | Scott González <scott.gonzalez@gmail.com> | 2016-08-31 16:29:54 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-08-31 16:29:56 -0400 |
commit | 3606e1c33a5838cb6cb55a32de0f11984f84663e (patch) | |
tree | 3a8c5d723d89b6c918843ccd5f286f9751b7f063 | |
parent | 4e39014803418a1cf60d0d565a6679baa93da0da (diff) | |
download | jquery-ui-3606e1c33a5838cb6cb55a32de0f11984f84663e.tar.gz jquery-ui-3606e1c33a5838cb6cb55a32de0f11984f84663e.zip |
Controlgroup: Don't use `String.prototype.trim()`
We still support IE 8, which doesn't have this method.
-rw-r--r-- | ui/widgets/controlgroup.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |