DEV: `sawTop` never seems used in our codebase or any plugins
This commit is contained in:
parent
96d026a329
commit
28e9f54e2f
|
@ -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 });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue