From f39ab3080e69c6ad4eae129cdf8bb900ec3721e3 Mon Sep 17 00:00:00 2001 From: Andrew Velis Date: Sun, 6 Oct 2013 21:27:40 -0700 Subject: [PATCH] Fix for #1518. Update to select2.js to trigger properly named event. By the documentation the event that should be fired is "select2-removed" however the event that actually gets fired is called "removed" --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 950f9d73..0fcb6118 100644 --- a/select2.js +++ b/select2.js @@ -2857,7 +2857,7 @@ the specific language governing permissions and limitations under the Apache Lic } selected.remove(); - this.opts.element.trigger({ type: "removed", val: this.id(data), choice: data }); + this.opts.element.trigger({ type: "select2-removed", val: this.id(data), choice: data }); this.triggerChange({ removed: data }); },