diff --git a/src/js/select2/compat/inputData.js b/src/js/select2/compat/inputData.js index 6352763b..6e1dee26 100644 --- a/src/js/select2/compat/inputData.js +++ b/src/js/select2/compat/inputData.js @@ -117,7 +117,7 @@ define([ }; InputData.prototype.addOptions = function (_, $options) { - var options = $.map($options, function ($option) { + var options = $.map($options, function ($option) { return Utils.GetData($option[0], 'data'); }); diff --git a/src/js/select2/dropdown/attachBody.js b/src/js/select2/dropdown/attachBody.js index eadafe4b..5018a4f0 100644 --- a/src/js/select2/dropdown/attachBody.js +++ b/src/js/select2/dropdown/attachBody.js @@ -93,7 +93,7 @@ define([ Utils.StoreData(this, 'select2-scroll-position', { x: $(this).scrollLeft(), y: $(this).scrollTop() - }); + }); }); $watchers.on(scrollEvent, function (ev) {