回答編集履歴
2
誤字修正
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
//var wait = 0; // <------------------- 定数化したら不要
|
12
12
|
|
13
|
-
if (is_processing ==
|
13
|
+
if (is_processing == false) { // <----- 処理中でなかったらsetTimeoutすればいいんでは?
|
14
14
|
|
15
15
|
setTimeout(function() {
|
16
16
|
|
1
追記
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
do_something();
|
22
22
|
|
23
|
-
|
23
|
+
is_processing = false; // <------ 処理が終わったらflag-OFF
|
24
24
|
|
25
25
|
}, wait);
|
26
26
|
|