mirror of
https://github.com/wassname/cardsforscience.git
synced 2026-07-09 02:23:52 +08:00
Merge pull request #57 from cgeorg/patch-1
Set the number of events to delete correctly
This commit is contained in:
+2
-2
@@ -297,11 +297,11 @@ var detector =
|
||||
if (detector.events.list[e].alpha > 0) {
|
||||
detector.events.list[e].draw(duration);
|
||||
} else {
|
||||
del = detector.events.list[e].count;
|
||||
del = e;
|
||||
}
|
||||
}
|
||||
|
||||
if (del >= 0) {
|
||||
if (del > 0) {
|
||||
detector.events.list.splice(0, del);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user