-
Notifications
You must be signed in to change notification settings - Fork 3
Repeater helper #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@OlegIlyenko please fix the conflicts |
src/coffee/helpers/repeater.coffee
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need brackets, just _ = require 'underscore'
src/coffee/helpers/repeater.coffee
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo tast
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo returns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will set timeout to 100 based on this, since 0 is considered false
@_timeout = options.timeout or 100If you allow to pass 0 maybe you should adjust the null check, or better use defaults
@_options = _.defaults options,
attempts: 10
timeout: 100
timeoutType: 'variable'There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:( yeah, you are right...
Conflicts: README.md src/coffee/main.coffee
No description provided.