From 157afda2fce885945527b9000a4c8bbd21e1e80e Mon Sep 17 00:00:00 2001 From: Cameron Fischer Date: Sun, 19 Sep 2021 14:58:45 -0400 Subject: [PATCH] Change backlinks to use LinkedList (#6050) --- core/modules/filters/backlinks.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/filters/backlinks.js b/core/modules/filters/backlinks.js index 2d9d65d84..f066d936a 100644 --- a/core/modules/filters/backlinks.js +++ b/core/modules/filters/backlinks.js @@ -16,11 +16,11 @@ Filter operator for returning all the backlinks from a tiddler Export our filter function */ exports.backlinks = function(source,operator,options) { - var results = []; + var results = new $tw.utils.LinkedList(); source(function(tiddler,title) { - $tw.utils.pushTop(results,options.wiki.getTiddlerBacklinks(title)); + results.pushTop(options.wiki.getTiddlerBacklinks(title)); }); - return results; + return results.makeTiddlerIterator(options.wiki); }; })();