1
0
mirror of synced 2025-02-03 21:59:24 +03:00

.destroy() should destroy all selected select2

This commit is contained in:
Matthias Kurz 2014-04-03 10:59:21 +02:00
parent 937aaa1737
commit ddcb61585a

View File

@ -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 {