DEV: `sawTop` never seems used in our codebase or any plugins

This commit is contained in:
Robin Ward 2020-04-20 16:48:51 -04:00
parent 96d026a329
commit 28e9f54e2f
1 changed files with 0 additions and 6 deletions

View File

@ -79,14 +79,8 @@ Eyeline.prototype.update = function() {
// If you hit the bottom we mark all the elements as seen. Otherwise, just the first one
if (!atBottom) {
appEvents.trigger("saw", { detail: $elem });
if (i === 0) {
appEvents.trigger("sawTop", { detail: $elem });
}
return false;
}
if (i === 0) {
appEvents.trigger("sawTop", { detail: $elem });
}
if (i === $elements.length - 1) {
return appEvents.trigger("sawBottom", { detail: $elem });
}