From 000ca6f9cefd501e4ae8785ab00940045fd435f7 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 2 Mar 2014 19:25:34 -0700 Subject: [PATCH] Remove QuoteMarkers.cache If posts couldn't die... --- builds/4chan-X.user.js | 6 +----- builds/crx/script.js | 6 +----- src/Quotelinks/QuoteMarkers.coffee | 5 ----- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index e114e2984..e3b85c7de 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5397,15 +5397,11 @@ parseQuotelink(this, quotelink, !!this.isClone); } }, - cache: {}, parseQuotelink: function(post, quotelink, mayReset, customText) { - var board, boardID, cache, markers, postID, text, thread, threadID, _ref, _ref1, _ref2; + var board, boardID, markers, postID, text, thread, threadID, _ref, _ref1, _ref2; _ref = post.isClone ? post.context : post, board = _ref.board, thread = _ref.thread; markers = []; _ref1 = Get.postDataFromLink(quotelink), boardID = _ref1.boardID, threadID = _ref1.threadID, postID = _ref1.postID; - if (cache = QuoteMarkers.cache[postID]) { - quotelink.textContent = cache; - } if ((_ref2 = QR.db) != null ? _ref2.get({ boardID: boardID, threadID: threadID, diff --git a/builds/crx/script.js b/builds/crx/script.js index 47a752c86..0d4218ca1 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5449,15 +5449,11 @@ parseQuotelink(this, quotelink, !!this.isClone); } }, - cache: {}, parseQuotelink: function(post, quotelink, mayReset, customText) { - var board, boardID, cache, markers, postID, text, thread, threadID, _ref, _ref1, _ref2; + var board, boardID, markers, postID, text, thread, threadID, _ref, _ref1, _ref2; _ref = post.isClone ? post.context : post, board = _ref.board, thread = _ref.thread; markers = []; _ref1 = Get.postDataFromLink(quotelink), boardID = _ref1.boardID, threadID = _ref1.threadID, postID = _ref1.postID; - if (cache = QuoteMarkers.cache[postID]) { - quotelink.textContent = cache; - } if ((_ref2 = QR.db) != null ? _ref2.get({ boardID: boardID, threadID: threadID, diff --git a/src/Quotelinks/QuoteMarkers.coffee b/src/Quotelinks/QuoteMarkers.coffee index 88235c4b0..647df71cd 100644 --- a/src/Quotelinks/QuoteMarkers.coffee +++ b/src/Quotelinks/QuoteMarkers.coffee @@ -11,16 +11,11 @@ QuoteMarkers = for quotelink in @nodes.quotelinks parseQuotelink @, quotelink, !!@isClone return - - cache: {} parseQuotelink: (post, quotelink, mayReset, customText) -> {board, thread} = if post.isClone then post.context else post markers = [] {boardID, threadID, postID} = Get.postDataFromLink quotelink - - if cache = QuoteMarkers.cache[postID] - quotelink.textContent = cache if QR.db?.get {boardID, threadID, postID} markers.push 'You'