Skip to content

Commit 372d84b

Browse files
committed
Don't use String#indexOf
1 parent 87dcd80 commit 372d84b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/bootstrap-datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359
clsName += ' active';
360360
}
361361
if (prevMonth.valueOf() < this.startDate || prevMonth.valueOf() > this.endDate ||
362-
this.daysOfWeekDisabled.indexOf(prevMonth.getUTCDay()) > -1) {
362+
$.inArray(prevMonth.getUTCDay(), this.daysOfWeekDisabled) !== -1) {
363363
clsName += ' disabled';
364364
}
365365
html.push('<td class="day'+clsName+'">'+prevMonth.getUTCDate() + '</td>');

0 commit comments

Comments
 (0)