From 28e9f54e2f6fa15cf97836e5a66ce4464d73bd62 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 20 Apr 2020 16:48:51 -0400 Subject: [PATCH] DEV: `sawTop` never seems used in our codebase or any plugins --- app/assets/javascripts/discourse/lib/eyeline.js | 6 ------ 1 file changed, 6 deletions(-) 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 }); }