Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4fdf4c3

Browse files
authoredJul 21, 2020
to make binding more clear
understanding "pre-bound value" can be little bit hard.
1 parent ae11710 commit 4fdf4c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎1-js/06-advanced-functions/10-bind/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ sayHi(); // Hello, John!
167167
setTimeout(sayHi, 1000); // Hello, John!
168168

169169
// even if the value of user changes within 1 second
170-
// sayHi uses the pre-bound value
170+
// sayHi uses the pre-bound value which is reference to old user object
171171
user = {
172172
sayHi() { alert("Another user in setTimeout!"); }
173173
};

0 commit comments

Comments
 (0)
Please sign in to comment.