Browse Source

fix count

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
53f6caaf6c
  1. 3
      api/hub.ts
  2. 5
      dist/api/hub.js
  3. 2
      dist/api/hub.js.map

3
api/hub.ts

@ -285,7 +285,8 @@ function debounce(func, id, delay) {
const context = this
const args = arguments
if(bounceTimeouts[id]) clearTimeout(bounceTimeouts[id])
if(tribeCounts[id]||tribeCounts[id]===0) tribeCounts[id]+=1
if(!tribeCounts[id]) tribeCounts[id]=0
tribeCounts[id]+=1
bounceTimeouts[id] = setTimeout(() => {
func.apply(context, args)
setTimeout(()=> tribeCounts[id]=0, 15)

5
dist/api/hub.js

@ -264,8 +264,9 @@ function debounce(func, id, delay) {
const args = arguments;
if (bounceTimeouts[id])
clearTimeout(bounceTimeouts[id]);
if (tribeCounts[id] || tribeCounts[id] === 0)
tribeCounts[id] += 1;
if (!tribeCounts[id])
tribeCounts[id] = 0;
tribeCounts[id] += 1;
bounceTimeouts[id] = setTimeout(() => {
func.apply(context, args);
setTimeout(() => tribeCounts[id] = 0, 15);

2
dist/api/hub.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save