File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ local variable inside of `method` which refers to `Foo`.
79
79
test();
80
80
}
81
81
82
- ` that ` is just a normal name, but it is commonly used for the reference to an
82
+ ` that ` is just a normal variable name, but it is commonly used for the reference to an
83
83
outer ` this ` . In combination with [ closures] ( #function.closures ) , it can also
84
84
be used to pass ` this ` values around.
85
85
@@ -91,7 +91,7 @@ Another thing that does **not** work in JavaScript is function aliasing, that is
91
91
var test = someObject.methodTest;
92
92
test();
93
93
94
- Due to the first case ` test ` now acts like like a plain function call; therefore,
94
+ Due to the first case ` test ` now acts like a plain function call; therefore,
95
95
` this ` inside it will no longer refer to ` someObject ` .
96
96
97
97
While the late binding of ` this ` might seem like a bad idea at first, it is in
You can’t perform that action at this time.
0 commit comments