@@ -386,9 +386,8 @@ export const BCalendar = Vue.extend({
386
386
return isLocaleRTL ( this . computedLocale )
387
387
} ,
388
388
context ( ) {
389
- const selectedYMD = this . selectedYMD
389
+ const { selectedYMD, activeYMD } = this
390
390
const selectedDate = parseYMD ( selectedYMD )
391
- const activeYMD = this . activeYMD
392
391
const activeDate = parseYMD ( activeYMD )
393
392
return {
394
393
// The current value of the `v-model`
@@ -412,11 +411,10 @@ export const BCalendar = Vue.extend({
412
411
// Computed props that return a function reference
413
412
dateOutOfRange ( ) {
414
413
// Check whether a date is within the min/max range
415
- // returns a new function ref if the pops change
414
+ // Returns a new function ref if the pops change
416
415
// We do this as we need to trigger the calendar computed prop
417
416
// to update when these props update
418
- const min = this . computedMin
419
- const max = this . computedMax
417
+ const { computedMin : min , computedMax : max } = this
420
418
return date => {
421
419
// Handle both `YYYY-MM-DD` and `Date` objects
422
420
date = parseYMD ( date )
@@ -776,8 +774,7 @@ export const BCalendar = Vue.extend({
776
774
} ,
777
775
onClickDay ( day ) {
778
776
// Clicking on a date "button" to select it
779
- const selectedDate = this . selectedDate
780
- const activeDate = this . activeDate
777
+ const { selectedDate, activeDate } = this
781
778
const clickedDate = parseYMD ( day . ymd )
782
779
if ( ! this . disabled && ! day . isDisabled && ! this . dateDisabled ( clickedDate ) ) {
783
780
if ( ! this . readonly ) {
0 commit comments