Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private normalizeOptions() {
const options = (this.options = isPlainObject(this.options)
? this.options
: {})
if (!options.wheelWrapperClass) {
options.wheelWrapperClass = 'wheel-scroll'
}
if (!options.wheelItemClass) {
options.wheelItemClass = 'wheel-item'
}
if (!options.rotate) {
options.rotate = 25
}
if (!options.adjustTime) {
options.adjustTime = 400
}
if (!options.wheelDisabledItemClass) {
options.wheelDisabledItemClass = 'wheel-disabled-item'