1
0
mirror of synced 2024-11-26 06:46:04 +03:00

Merge pull request #2236 from mkurz/destroy_fix

.destroy() should destroy all selected select2
This commit is contained in:
Kevin Brown 2014-04-03 08:47:46 -04:00
commit e801573328

View File

@ -3306,7 +3306,7 @@ the specific language governing permissions and limitations under the Apache Lic
value = select2[method].apply(select2, args.slice(1)); value = select2[method].apply(select2, args.slice(1));
} }
if (indexOf(args[0], valueMethods) >= 0 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 return false; // abort the iteration, ready to return first matched value
} }
} else { } else {