From 86a9c79b04084e01fb156cc25a0b0cd6dade6137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Ko=C5=A1=C4=8Do?= <3k.stanley@gmail.com> Date: Wed, 5 Mar 2014 11:00:45 +0100 Subject: [PATCH] Removed unnecessary animation during unseint multiselect by close button --- select2.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/select2.js b/select2.js index 11e30516..72de1900 100644 --- a/select2.js +++ b/select2.js @@ -2948,13 +2948,11 @@ the specific language governing permissions and limitations under the Apache Lic .on("click dblclick", this.bind(function (e) { if (!this.isInterfaceEnabled()) return; - $(e.target).closest(".select2-search-choice").fadeOut('fast', this.bind(function(){ - this.unselect($(e.target)); - this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"); - this.close(); - this.focusSearch(); - })).dequeue(); + this.unselect($(e.target)); + this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"); killEvent(e); + this.close(); + this.focusSearch(); })).on("focus", this.bind(function () { if (!this.isInterfaceEnabled()) return; this.container.addClass("select2-container-active");