Skip to content
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

eg.pauseResume - support pause/resume on $.fn.delay #170

Merged
merged 2 commits into from
Apr 21, 2016

Conversation

jongmoon
Copy link
Contributor

Issue

#167

Details

Support pause/resume on $.fn.delay

Preferred reviewers

@happyhj, @naver/egjs-dev

* @param {Number} An integer indicating the number of milliseconds to delay execution of the next item in the queue.
* @param {String} A string containing the name of the queue. Defaults to fx, the standard effects queue.
*/
$.fn.delay = function(time, type) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest define third parameter explicitly with adding comment for internal use beside the parameter. Because number of additional parameter is not variable.

like below

$.fn.delay = function(time, type, /* Internal Use Only */ isCallByResume ) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@happyhj I agree it is more readable.My intension is to reduce confusion about third parameter because function interface is easily exposed. I'll consider more.. Is there any opinion @naver/egjs-dev ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't care. I like both ways

@happyhj
Copy link
Contributor

happyhj commented Apr 19, 2016

LGTM~! 👍

@jongmoon jongmoon merged commit 28eb48f into naver:master Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants