Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/assets/javascripts/select2.js
View
4 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") {
@@ -2644,7 +2644,7 @@ the specific language governing permissions and limitations under the Apache Lic
dropdownCssClass: "",
formatResult: function(result, container, query, escapeMarkup) {
var markup=[];
- markMatch(result.text, query.term, markup, escapeMarkup);
+ markMatch(this.resultText(result), query.term, markup, escapeMarkup);
return markup.join("");
},
formatSelection: function (data, container) {

No commit comments for this range

Something went wrong with that request. Please try again.