typo: it's > its
just a casual small typo
This commit is contained in:
parent
fb99525ba8
commit
48f942c093
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ The result of a property access `user.hi` is not a function, but a value of Refe
|
||||||
(user, "hi", true)
|
(user, "hi", true)
|
||||||
```
|
```
|
||||||
|
|
||||||
When parentheses `()` are called on the Reference Type, they receive the full information about the object and it's method, and can set the right `this` (`=user` in this case).
|
When parentheses `()` are called on the Reference Type, they receive the full information about the object and its method, and can set the right `this` (`=user` in this case).
|
||||||
|
|
||||||
Any other operation like assignment `hi = user.hi` discards the reference type as a whole, takes the value of `user.hi` (a function) and passes it on. So any further operation "loses" `this`.
|
Any other operation like assignment `hi = user.hi` discards the reference type as a whole, takes the value of `user.hi` (a function) and passes it on. So any further operation "loses" `this`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue