From ddcb61585ad03433a5d6b30e1834115bb1a9dfed Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 3 Apr 2014 10:59:21 +0200 Subject: [PATCH] .destroy() should destroy all selected select2 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 3beb6420..7b73a070 100644 --- a/select2.js +++ b/select2.js @@ -3298,7 +3298,7 @@ the specific language governing permissions and limitations under the Apache Lic value = select2[method].apply(select2, args.slice(1)); } if (indexOf(args[0], valueMethods) >= 0 - || (indexOf(args[0], propertyMethods) && args.length == 1)) { + || (indexOf(args[0], propertyMethods) >= 0 && args.length == 1)) { return false; // abort the iteration, ready to return first matched value } } else {