Skip to content

Commit b054070

Browse files
committed
translate "Clearing all timeouts" in "Others" to ja
1 parent bcb31de commit b054070

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

doc/ja/other/timeouts.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,16 @@ JavaScriptは非同期なので、`setTimeout`と`setInterval`関数を使って
6565
var id = setTimeout(foo, 1000);
6666
clearTimeout(id);
6767

68-
### Clearing all timeouts
68+
### 全てのタイムアウトをクリアする
6969

70-
As there is no built-in method for clearing all timeouts and/or intervals,
71-
it is necessary to use brute force in order to achieve this functionality.
70+
全てのタイムアウトや、インターバルをクリアする組み込みメソッドが無い為、機能的にクリアする為には暴力的な手段を使う必要があります。
7271

73-
// clear "all" timeouts
72+
// "全ての"タイムアウトをクリアする
7473
for(var i = 1; i < 1000; i++) {
7574
clearTimeout(i);
7675
}
7776

78-
There might still be timeouts that are unaffected by this arbitrary number;
79-
therefore, is is instead recommended to keep track of all the timeout IDs, so
80-
they can be cleared specifically.
77+
ここまでもまだ、任意の数字を与えられた為に影響を受けないタイムアウトがあるかもしれません。しかし、全てのタイムアウトのIDを追跡していく事は推奨されないので、それらは個別にクリアされます。
8178

8279
### Hidden use of `eval`
8380

0 commit comments

Comments
 (0)