Skip to content

Commit f38eb4e

Browse files
authored
Merge pull request #2021 from lumosmind/patch-44
to make binding more clear
2 parents ae11710 + b70f949 commit f38eb4e

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

+1-1
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 the old user object
171171
user = {
172172
sayHi() { alert("Another user in setTimeout!"); }
173173
};

0 commit comments

Comments
 (0)