reactronic 0.21.521 → 0.21.522
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -144,10 +144,10 @@ class TransactionImpl extends Transaction {
|
|
|
144
144
|
}
|
|
145
145
|
static isTimeOver(everyN = 1) {
|
|
146
146
|
TransactionImpl.checkCount++;
|
|
147
|
-
let result = TransactionImpl.checkCount % everyN
|
|
147
|
+
let result = TransactionImpl.checkCount % everyN === 0;
|
|
148
148
|
if (result) {
|
|
149
149
|
const ms = performance.now() - TransactionImpl.startTime;
|
|
150
|
-
result = ms > TransactionImpl.
|
|
150
|
+
result = ms > TransactionImpl.timeLimit;
|
|
151
151
|
}
|
|
152
152
|
return result;
|
|
153
153
|
}
|
|
@@ -307,6 +307,6 @@ TransactionImpl.none = new TransactionImpl({ hint: '<none>' });
|
|
|
307
307
|
TransactionImpl.curr = TransactionImpl.none;
|
|
308
308
|
TransactionImpl.inspection = false;
|
|
309
309
|
TransactionImpl.startTime = 0;
|
|
310
|
-
TransactionImpl.
|
|
310
|
+
TransactionImpl.timeLimit = 14;
|
|
311
311
|
TransactionImpl.checkCount = 0;
|
|
312
312
|
TransactionImpl._init();
|