Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variables #5554

Merged
merged 1 commit into from Aug 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/js/select2/data/tags.js
Expand Up @@ -111,8 +111,6 @@ define([
};

Tags.prototype._removeOldTags = function (_) {
var tag = this._lastTag;

var $options = this.$element.find('option[data-select2-tag]');

$options.each(function () {
Expand Down
4 changes: 0 additions & 4 deletions src/js/select2/selection/base.js
Expand Up @@ -38,7 +38,6 @@ define([
BaseSelection.prototype.bind = function (container, $container) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$container isn't used either....

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

although maybe this is implemented somewhere else... so nvm

var self = this;

var id = container.id + '-container';
var resultsId = container.id + '-results';

this.container = container;
Expand Down Expand Up @@ -116,7 +115,6 @@ define([
};

BaseSelection.prototype._attachCloseHandler = function (container) {
var self = this;

$(document.body).on('mousedown.select2.' + container.id, function (e) {
var $target = $(e.target);
Expand All @@ -126,8 +124,6 @@ define([
var $all = $('.select2.select2-container--open');

$all.each(function () {
var $this = $(this);

if (this == $select[0]) {
return;
}
Expand Down