remove evt
This commit is contained in:
parent
e10f3b7dae
commit
2b9c8b00a7
7
src/js/select2/dropdown/selectOnClose.js
vendored
7
src/js/select2/dropdown/selectOnClose.js
vendored
@ -8,12 +8,12 @@ define([
|
||||
|
||||
decorated.call(this, container, $container);
|
||||
|
||||
container.on('close', function (evt) {
|
||||
self._handleSelectOnClose(evt);
|
||||
container.on('close', function () {
|
||||
self._handleSelectOnClose();
|
||||
});
|
||||
};
|
||||
|
||||
SelectOnClose.prototype._handleSelectOnClose = function (evt) {
|
||||
SelectOnClose.prototype._handleSelectOnClose = function () {
|
||||
var self = this;
|
||||
|
||||
var $highlightedResults = this.getHighlightedResults();
|
||||
@ -23,7 +23,6 @@ define([
|
||||
}
|
||||
|
||||
self.trigger('select', {
|
||||
originalEvent: evt,
|
||||
data: $highlightedResults.data('data')
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user