vue-bulma / datepicker

Datepicker Component for Vue Bulma
MIT License
115 stars 56 forks source link

Fixes duplicate `methods:` key #38

Closed heygambo closed 7 years ago

heygambo commented 7 years ago

This just moves both closePicker and redraw into the same methods key.

before

methods: {
  closePicker () {
    this.datepicker && this.datepicker.close()
  }
},
methods: {
  redraw(newConfig) {
    this.datepicker.config = Object.assign(this.datepicker.config, newConfig)
    this.datepicker.redraw()
    this.datepicker.jumpToDate()
  }
},

after

methods: {
  closePicker () {
    this.datepicker && this.datepicker.close()
  },
  redraw(newConfig) {
    this.datepicker.config = Object.assign(this.datepicker.config, newConfig)
    this.datepicker.redraw()
    this.datepicker.jumpToDate()
  }
},
luventa commented 7 years ago

Thanks! merged.