From 4482c2af85026372d3fcb54f5d33556fd506be1e Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Thu, 31 Jan 2013 14:25:51 -0800 Subject: [PATCH] by default do not trigger change from val. #771 #619 --- select2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/select2.js b/select2.js index 31480f21..7c679673 100644 --- a/select2.js +++ b/select2.js @@ -1757,7 +1757,7 @@ the specific language governing permissions and limitations under the Apache Lic // single val: function () { - var val, triggerChange = true, data = null, self = this; + var val, triggerChange = false, data = null, self = this; if (arguments.length === 0) { return this.opts.element.val(); @@ -2310,7 +2310,7 @@ the specific language governing permissions and limitations under the Apache Lic // multi val: function () { - var val, triggerChange = true, data = [], self=this; + var val, triggerChange = false, data = [], self=this; if (arguments.length === 0) { return this.getVal();