From cf2b696fd93bfe3c4f588107ff5eeacbf5b14bde Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Sat, 9 Feb 2013 20:39:33 -0800 Subject: [PATCH] fire change on clear. fixes #558 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index ecd079ef..e2306c96 100644 --- a/select2.js +++ b/select2.js @@ -1742,6 +1742,7 @@ the specific language governing permissions and limitations under the Apache Lic this.setPlaceholder(); this.opts.element.trigger({ type: "removed", val: this.id(data), choice: data }); + this.triggerChange({removed:data}); }, /** @@ -2352,7 +2353,6 @@ 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.triggerChange({ removed: data }); },