Skip to content

not proved feature in article #1563

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

Closed
wants to merge 1 commit into from

Conversation

lumosmind
Copy link
Contributor

Some things has been mentioned about : "If user object changes while setTimout() waiting for run callback function which is method of user object, what will happen?"

"What if before setTimeout triggers (there’s one second delay!) user changes value? Then, suddenly, it will call the wrong object!"

And some things has been mentioned about "we will solve the problem with function binding"

"The next solution guarantees that such thing won’t happen."

But there is nothing to show that function binding really solves the problem which has been mentioned before.

some things has been mentioned about : "If user object changes while setTimout() waiting for run callback function which is method of user object, what will happen?"
"What if before setTimeout triggers (there’s one second delay!) user changes value? Then, suddenly, it will call the wrong object!"

And some things has been mentioned about "we will solve the problem with function binding"
"The next solution guarantees that such thing won’t happen."

But there is nothing to show that function binding really solves the problem which has been mentioned before.
@iliakan iliakan closed this in ad08b46 Nov 2, 2019
@iliakan
Copy link
Member

iliakan commented Nov 2, 2019

Thanks, added few more words.

@lumosmind lumosmind deleted the patch-22 branch January 13, 2021 21:28
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.

2 participants