mirror of
https://github.com/wassname/cardsforscience.git
synced 2026-06-27 17:29:55 +08:00
Only splice if there's something to remove
This commit is contained in:
+1
-1
@@ -301,7 +301,7 @@ var detector =
|
||||
}
|
||||
}
|
||||
|
||||
if (del >= 0) {
|
||||
if (del > 0) {
|
||||
detector.events.list.splice(0, del);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user