Only splice if there's something to remove

This commit is contained in:
cgeorg
2014-08-12 07:15:13 -04:00
parent 46cda56701
commit ff9515c277
+1 -1
View File
@@ -301,7 +301,7 @@ var detector =
}
}
if (del >= 0) {
if (del > 0) {
detector.events.list.splice(0, del);
}
}