Update select2.js

bugfix: .select2("data", null) for remote datasource causes an error "ReferenceError: e is not defined"
Update select2_locale_ar.js

Translate in the of 1 or 2 or more than 2 because not the same in Arabic.
Fix the focus when list is closed on the mouse click event
do not leak click events. fixes #1622
Enable function formatResultCssClass.
Edit the default initSelection function to pass all tag properties

The function will now pass all properties of the objects passed as tags to the constructor, not just the "id" and "text" properties. Because a tag is not always just an id and a text, just like when you provide the items with the "data" object instead.

This makes sure these properties are always available at the runtime of formatSelection() or formatResult(), which is not currently the case when the field is repopulated on a triggered "change" event.

My code looks like this :

$el.select2({
...,
tags: [{
  //id
  id: 1,
  //the string that will matched against the user's query
  text: 'martin smith greatmartin@provider.com'
  //the label of the item that will be shown if this tag is selected
  label: 'M. Smith',
}],
formatSelection: function(object, container){
  return object.label || object.text;
},
//right now I have to override the default function:
initSelection: function(){...}
});
Merge pull request #1690 from evangun/initSelectionFix

Edit the default initSelection function to pass all tag properties
Fix focus on select

Focus should go back to select2-focusser, not select2-choice.
Merge pull request #1694 from cnanney/patch-1

Fix focus on select
Remove negative selector for `.select2-selected`

This broke scroll behaviour when displaying the selected items in the
dropdown.
Merge pull request #1706 from moneybird/master

Remove negative selector for `.select2-selected`
Fixes styling in bootstrap environment

Fixes #1588 thanks to @smajl
dropdown repostion fix when previous postion changes container position
Use more specific selector for finding options of a select
modified version identifiers in descriptors for release 3.4.3
Merge pull request #1723 from AlexanderZaytsev/master

Use more specific selector for finding options of a select
Merge pull request #1717 from ProLoser/patch-1

Fixes styling in bootstrap environment
Merge pull request #1722 from yonjah/master

dropdown repostion fix when previous postion changes container position
Compatibility with jQuery 1.10

removeAttr("disabled') is no longer correct with the most recent version
of jQuery. Should use prop("disabled", false) instead.
Update select2-bootstrap.css

Added Bootstrap Validation states for warning, error, info, and success