Skip to content

Commit e801573

Browse files
committed
Merge pull request select2#2236 from mkurz/destroy_fix
.destroy() should destroy all selected select2
2 parents 43a598b + ddcb615 commit e801573

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3306,7 +3306,7 @@ the specific language governing permissions and limitations under the Apache Lic
33063306
value = select2[method].apply(select2, args.slice(1));
33073307
}
33083308
if (indexOf(args[0], valueMethods) >= 0
3309-
|| (indexOf(args[0], propertyMethods) && args.length == 1)) {
3309+
|| (indexOf(args[0], propertyMethods) >= 0 && args.length == 1)) {
33103310
return false; // abort the iteration, ready to return first matched value
33113311
}
33123312
} else {

0 commit comments

Comments
 (0)