Skip to content

A platform for community discussion. Free, open, simple.

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

Robin Ward28e9f54e2f6f
diff --git a/app/assets/javascripts/discourse/lib/eyeline.js b/app/assets/javascripts/discourse/lib/eyeline.js
index 57a6def7dd4..d31602e4da0 100644
--- a/app/assets/javascripts/discourse/lib/eyeline.js
+++ b/app/assets/javascripts/discourse/lib/eyeline.js
@@ -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 });
}