From 53d1fea2483c96fb802791b0e77325ffb5a23041 Mon Sep 17 00:00:00 2001 From: Riley Lynch Date: Sun, 20 Oct 2013 13:14:31 -0700 Subject: [PATCH] Modified syncCssClasses to use output of adapter when applying a class rather than applying the original class --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index c0aa3875..7ff2c525 100644 --- a/select2.js +++ b/select2.js @@ -349,7 +349,7 @@ the specific language governing permissions and limitations under the Apache Lic if (this.indexOf("select2-") !== 0) { adapted = adapter(this); if (adapted) { - replacements.push(this); + replacements.push(adapted); } } });