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

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 you hit the bottom we mark all the elements as seen. Otherwise, just the first one
if (!atBottom) { if (!atBottom) {
appEvents.trigger("saw", { detail: $elem }); appEvents.trigger("saw", { detail: $elem });
if (i === 0) {
appEvents.trigger("sawTop", { detail: $elem });
}
return false; return false;
} }
if (i === 0) {
appEvents.trigger("sawTop", { detail: $elem });
}
if (i === $elements.length - 1) { if (i === $elements.length - 1) {
return appEvents.trigger("sawBottom", { detail: $elem }); return appEvents.trigger("sawBottom", { detail: $elem });
} }