Remove unused variables (#5554)
This commit is contained in:
parent
f13ba12bea
commit
7b9cfcaaa0
2
src/js/select2/data/tags.js
vendored
2
src/js/select2/data/tags.js
vendored
@ -111,8 +111,6 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
Tags.prototype._removeOldTags = function (_) {
|
Tags.prototype._removeOldTags = function (_) {
|
||||||
var tag = this._lastTag;
|
|
||||||
|
|
||||||
var $options = this.$element.find('option[data-select2-tag]');
|
var $options = this.$element.find('option[data-select2-tag]');
|
||||||
|
|
||||||
$options.each(function () {
|
$options.each(function () {
|
||||||
|
4
src/js/select2/selection/base.js
vendored
4
src/js/select2/selection/base.js
vendored
@ -39,7 +39,6 @@ define([
|
|||||||
BaseSelection.prototype.bind = function (container, $container) {
|
BaseSelection.prototype.bind = function (container, $container) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
var id = container.id + '-container';
|
|
||||||
var resultsId = container.id + '-results';
|
var resultsId = container.id + '-results';
|
||||||
|
|
||||||
this.container = container;
|
this.container = container;
|
||||||
@ -117,7 +116,6 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
BaseSelection.prototype._attachCloseHandler = function (container) {
|
BaseSelection.prototype._attachCloseHandler = function (container) {
|
||||||
var self = this;
|
|
||||||
|
|
||||||
$(document.body).on('mousedown.select2.' + container.id, function (e) {
|
$(document.body).on('mousedown.select2.' + container.id, function (e) {
|
||||||
var $target = $(e.target);
|
var $target = $(e.target);
|
||||||
@ -127,8 +125,6 @@ define([
|
|||||||
var $all = $('.select2.select2-container--open');
|
var $all = $('.select2.select2-container--open');
|
||||||
|
|
||||||
$all.each(function () {
|
$all.each(function () {
|
||||||
var $this = $(this);
|
|
||||||
|
|
||||||
if (this == $select[0]) {
|
if (this == $select[0]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user