Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

once method of Component #412

Closed
mixed opened this issue Nov 11, 2016 · 0 comments
Closed

once method of Component #412

mixed opened this issue Nov 11, 2016 · 0 comments
Assignees
Milestone

Comments

@mixed
Copy link
Member

mixed commented Nov 11, 2016

Description

Sometime, Users want to bind one time. If there is no once, attch event and should be detach event. It is too complicated.

Steps to check or reproduce

var fp = function(){
 // do something
  a.off(fp);
}

a.on(fp);

->

var fp = function(){
 // do something
}

a.once(fp);
@mixed mixed self-assigned this Dec 28, 2016
mixed added a commit to mixed/egjs that referenced this issue Dec 28, 2016
once is executed event just one time.

Ref naver#412
@mixed mixed closed this as completed in 62f456e Jan 3, 2017
@mixed mixed modified the milestone: 1.4.0 Jan 3, 2017
@mixed mixed modified the milestone: 1.5.0 Jan 11, 2017
malangfox pushed a commit that referenced this issue Jan 6, 2025
once is executed event just one time.

Ref #412
Close #412
malangfox pushed a commit that referenced this issue Jan 7, 2025
once is executed event just one time.

Ref #412
Close #412
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant