File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
1-js/04-object-basics/04-object-methods/4-object-property-this Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ alert( user.ref.name ); // Error: Cannot read property 'name' of undefined
16
16
17
17
Jest to spowodowane tym, że reguły ustalające wartość ` this ` nie uwzględniają definicji obiektu. Znaczenie ma tylko moment wywołania.
18
18
19
- Wartość ` this ` wewnątrz ` makeUser() ` jest ` undefined ` , ponieważ jest wywołana jako funkcja, a nie jako metoda wywołania za pomocą składni z "kropką"
19
+ Wartość ` this ` wewnątrz ` makeUser() ` jest ` undefined ` , ponieważ jest wywołana jako funkcja, a nie jako metoda wywołana za pomocą "kropki".
20
20
21
- Wartość ` this ` jest tu ustalonawyłącznie dla tej funkcji. Bloki kodu i obiekty nie są w tym przypadku brane pod uwagę.
21
+ Wartość ` this ` jest tu ustalona wyłącznie dla tej funkcji. Bloki kodu i obiekty nie są w tym przypadku brane pod uwagę.
22
22
23
23
Zatem ` ref:this ` jest równoznaczne z ` this ` funkcji.
24
24
You can’t perform that action at this time.
0 commit comments