From 37ff4bbf36c0e1d70b50be863305e2e23e167163 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Fri, 20 Jul 2012 17:28:15 +0300 Subject: [PATCH] added close event. fixes #246 --- select2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select2.js b/select2.js index ac744968..2f9dd60d 100755 --- a/select2.js +++ b/select2.js @@ -844,6 +844,8 @@ this.container.removeClass("select2-dropdown-open"); this.results.empty(); this.clearSearch(); + + this.opts.element.trigger(jQuery.Event("close")); }, // abstract