Skip to content
Browse files

fix problem when several select2s use data-ajax-url

  • Loading branch information...
1 parent e6c7452 commit 8f9bc3daac9ac08b5d1648d23388726b948de5c5 @eeng committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/select2.js
View
2 app/assets/javascripts/select2.js
@@ -2598,7 +2598,7 @@ the specific language governing permissions and limitations under the Apache Lic
this.each(function () {
if (args.length === 0 || typeof(args[0]) === "object") {
- opts = args.length === 0 ? {} : $.extend({}, args[0]);
+ opts = args.length === 0 ? {} : $.extend(true, {}, args[0]);
opts.element = $(this);
if (opts.element.get(0).tagName.toLowerCase() === "select") {

0 comments on commit 8f9bc3d

Please sign in to comment.
Something went wrong with that request. Please try again.