Browse Source

added close event. fixes #246

Igor Vaynberg 13 years ago
parent
commit
37ff4bbf36
1 changed files with 2 additions and 0 deletions
  1. 2 0
      select2.js

+ 2 - 0
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