Kelin2025 / vue-timers

Mixin to manage your intervals in Vue.js
MIT License
231 stars 17 forks source link

Documentation inconsistency: default for `time` #48

Open straightdave opened 5 years ago

straightdave commented 5 years ago

(Great stuff! Works perfectly in my case.)

One small thing in the document: the default of time is not 1000, but seems 0.

masongzhi commented 5 years ago

yes, you find it

return {
    name: config.name,
    time: config.time || 0,
    repeat: 'repeat' in config ? config.repeat : false,
    immediate: 'immediate' in config ? config.immediate : false,
    autostart: 'autostart' in config ? config.autostart : false,
    isSwitchTab: 'isSwitchTab' in config ? config.isSwitchTab : false,
    callback: (config.callback && config.callback.bind(vm)) || vm[config.name]
  }

@Kelin2025 it should change the readme or code?