Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor (opts) {
opts = opts || {}
super(opts)
switch (opts.fn) {
case 'chinese':
this.cal = new CalChinese.CalendarChinese()
break
case 'korean':
this.cal = new CalChinese.CalendarKorean()
break
case 'vietnamese':
this.cal = new CalChinese.CalendarVietnamese()
break
}
}