Skip to content

Commit f1daf28

Browse files
fvieiraFrancisco José Marques Vieira
authored andcommitted
Fix parameters in foo function call
1 parent 3ed3ab4 commit f1daf28

File tree

12 files changed

+24
-24
lines changed

12 files changed

+24
-24
lines changed

doc/en/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ function that will get called by either of the timeout functions.
148148

149149
// Instead use an anonymous function
150150
setTimeout(function() {
151-
foo(a, b, c);
151+
foo(1, 2, 3);
152152
}, 1000)
153153

154-
> **Note:** While it is also possible to use `setTimeout(foo, 1000, a, b, c)`
154+
> **Note:** While it is also possible to use `setTimeout(foo, 1000, 1, 2, 3)`
155155
> syntax, it is not recommended, as its use may lead
156156
> to subtle errors when used with [methods](#function.this).
157157
> Furthermore, the syntax might not work in some JavaScript implementations.

doc/es/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ function that will get called by either of the timeout functions.
134134

135135
// Instead use an anonymous function
136136
setTimeout(function() {
137-
foo(a, b, c);
137+
foo(1, 2, 3);
138138
}, 1000)
139139

140140
> **Note:** While it is also possible to use the syntax
141-
> `setTimeout(foo, 1000, a, b, c)`, it is not recommended, as its use may lead
141+
> `setTimeout(foo, 1000, 1, 2, 3)`, it is not recommended, as its use may lead
142142
> to subtle errors when used with [methods](#function.this).
143143
144144
### In Conclusion

doc/fi/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ Tämän lisäksi on suositeltavaa olla **käyttämättä** merkkijonoja parametr
9999

100100
// Käytä nimetöntä funktiota sen sijaan
101101
setTimeout(function() {
102-
foo(a, b, c);
102+
foo(1, 2, 3);
103103
}, 1000)
104104

105-
> **Huomio:** Vaikka syntaksi `setTimeout(foo, 1000, a, b, c)` onkin mahdollinen, ei sen käyttöä suositella. Tämä johtuu siitä, että sen käyttö voi johtaa virheisiin erityisesti [metodien](#function.this) kanssa.
105+
> **Huomio:** Vaikka syntaksi `setTimeout(foo, 1000, 1, 2, 3)` onkin mahdollinen, ei sen käyttöä suositella. Tämä johtuu siitä, että sen käyttö voi johtaa virheisiin erityisesti [metodien](#function.this) kanssa.
106106
107107
### Yhteenveto
108108

doc/hu/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ a timeout függvények által meg lesz hívva a későbbiekben.
146146

147147
// Ehelyett csomagoljuk névtelen függvénybe
148148
setTimeout(function() {
149-
foo(a, b, c);
149+
foo(1, 2, 3);
150150
}, 1000)
151151

152-
> **Megjegyzés:** Habár lehetséges a `setTimeout(foo, 1000, a, b, c)` szintaxist
152+
> **Megjegyzés:** Habár lehetséges a `setTimeout(foo, 1000, 1, 2, 3)` szintaxist
153153
> használni, mégsem ajánlott, mivel [metódusok](#function.this) használatakor
154154
> észrevehetetlen hibákhoz vezethet.
155155

doc/it/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ funzione che verrà chiamata da una delle funzioni di timeout.
150150

151151
// Usare invece una funzione anonima
152152
setTimeout(function() {
153-
foo(a, b, c);
153+
foo(1, 2, 3);
154154
}, 1000)
155155

156156
> **Nota:** mentre è ancora possibile usare la sintassi
157-
> `setTimeout(foo, 1000, a, b, c)`, non la si raccomanda, dato che il suo
157+
> `setTimeout(foo, 1000, 1, 2, 3)`, non la si raccomanda, dato che il suo
158158
> utilizzo potrebbe portare ad errori subdoli quando usata con i
159159
> [metodi](#function.this).
160160

doc/ja/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ JavaScriptは非同期なので、`setTimeout`と`setInterval`関数を使って
108108

109109
// 匿名関数を代わりに使用する
110110
setTimeout(function() {
111-
foo(a, b, c);
111+
foo(1, 2, 3);
112112
}, 1000)
113113

114-
> **注意点:** `setTimeout(foo, 1000, a, b, c)`のようなシンタックスを使用する事も
114+
> **注意点:** `setTimeout(foo, 1000, 1, 2, 3)`のようなシンタックスを使用する事も
115115
> できますが、[メソッド](#function.this)を使用した際に、分かりにくいエラーが起りえるので
116116
> 使用はお勧めしません。
117117

doc/ko/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ JS엔진은 타이머에 설정한 시간(timer resolution)에 따라서 코드
109109

110110
// 대신 익명 함수를 사용하는 게 좋다.
111111
setTimeout(function() {
112-
foo(a, b, c);
112+
foo(1, 2, 3);
113113
}, 1000)
114114

115-
> **Note:** `setTimeout(foo, 1000, a, b, c)`처럼 사용하는 것도 가능하지만, 이것도 권장하지 않는다. [메소드](#function.this)를 사용할 때 잡아내기 어려운 에러가 날 수 있다.
115+
> **Note:** `setTimeout(foo, 1000, 1, 2, 3)`처럼 사용하는 것도 가능하지만, 이것도 권장하지 않는다. [메소드](#function.this)를 사용할 때 잡아내기 어려운 에러가 날 수 있다.
116116
117117
### 결론
118118

doc/pl/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ do funkcji, która ma zostać wywołana przez budzik.
137137

138138
// zamiast tego należy skorzystać z anonimowej funkcji
139139
setTimeout(function() {
140-
foo(a, b, c);
140+
foo(1, 2, 3);
141141
}, 1000)
142142

143143
>**Uwaga:** Mimo że możliwe jest wykorzystanie składni
144-
> `setTimeout(foo, 1000, a, b, c)`, nie zaleca się korzystania z niej, ponieważ
144+
> `setTimeout(foo, 1000, 1, 2, 3)`, nie zaleca się korzystania z niej, ponieważ
145145
> może to prowadzić do subtelnych błędów podczas wykorzystania [metod](#function.this).
146146
147147
### Wnioski

doc/ru/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@
100100

101101
// Вместо этого используйте анонимную функцию
102102
setTimeout(function() {
103-
foo(a, b, c);
103+
foo(1, 2, 3);
104104
}, 1000)
105105

106-
> **Замечание:** При том, что синтаксис `setTimeout(foo, 1000, a, b, c)` разрешено использовать, это крайне не рекомендуется, поскольку может привести к сложно распознаваемым ошибкам при работе с [методами](#function.this).
106+
> **Замечание:** При том, что синтаксис `setTimeout(foo, 1000, 1, 2, 3)` разрешено использовать, это крайне не рекомендуется, поскольку может привести к сложно распознаваемым ошибкам при работе с [методами](#function.this).
107107
108108
### Заключение
109109

doc/tr/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ kullanılması tavsiye **edilmez**.
140140

141141
// Bunu yerine isimsiz bir fonksiyon kullanın
142142
setTimeout(function() {
143-
foo(a, b, c);
143+
foo(1, 2, 3);
144144
}, 1000)
145145

146-
> **Not:** `setTimeout(foo, 1000, a, b, c)` sentaksının kullanılması da mümkün
146+
> **Not:** `setTimeout(foo, 1000, 1, 2, 3)` sentaksının kullanılması da mümkün
147147
> olmasına karşın tavsiye edilmez, çünkü bu kullanım [metodlarla](#function.this)
148148
> birlikte fark edilmesi zor hatalara neden olabilir.
149149

doc/zh/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@
113113

114114
// 可以使用匿名函数完成相同功能
115115
setTimeout(function() {
116-
foo(a, b, c);
116+
foo(1, 2, 3);
117117
}, 1000)
118118

119-
> **注意:** 虽然也可以使用这样的语法 `setTimeout(foo, 1000, a, b, c)`
119+
> **注意:** 虽然也可以使用这样的语法 `setTimeout(foo, 1000, 1, 2, 3)`
120120
> 但是不推荐这么做,因为在使用对象的[属性方法](#function.this)时可能会出错。
121121
>**译者注:**这里说的是属性方法内,`this` 的指向错误)
122122

doc/zhtw/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ function that will get called by either of the timeout functions.
119119

120120
// Instead use an anonymous function
121121
setTimeout(function() {
122-
foo(a, b, c);
122+
foo(1, 2, 3);
123123
}, 1000)
124124

125125
> **Note:** While it is also possible to use the syntax
126-
> `setTimeout(foo, 1000, a, b, c)`, it is not recommended, as its use may lead
126+
> `setTimeout(foo, 1000, 1, 2, 3)`, it is not recommended, as its use may lead
127127
> to subtle errors when used with [methods](#function.this).
128128
129129
### In Conclusion

0 commit comments

Comments
 (0)