diff --git a/src/js/select2/data/array.js b/src/js/select2/data/array.js index 1c9e1bb2..b8899662 100644 --- a/src/js/select2/data/array.js +++ b/src/js/select2/data/array.js @@ -52,7 +52,7 @@ define([ var $existingOption = $existing.filter(onlyItem(item)); var existingData = this.item($existingOption); - var newData = $.extend(true, {}, existingData, item); + var newData = $.extend(true, {}, item, existingData); var $newOption = this.option(newData);