Merge pull request #57 from cgeorg/patch-1

Set the number of events to delete correctly
This commit is contained in:
Tadej Novak
2014-08-12 22:22:21 +02:00
+2 -2
View File
@@ -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);
}
}