From e280f89ca5dc78ba384a3a1108c88bd1ff31f25c Mon Sep 17 00:00:00 2001 From: Cameron Fischer Date: Tue, 5 Jan 2021 12:36:18 -0500 Subject: [PATCH] Converting [links[]] to use better LinkedList (#5369) --- core/modules/filters/links.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/filters/links.js b/core/modules/filters/links.js index ca969b6da..e1a859bc1 100644 --- a/core/modules/filters/links.js +++ b/core/modules/filters/links.js @@ -16,11 +16,11 @@ Filter operator for returning all the links from a tiddler Export our filter function */ exports.links = function(source,operator,options) { - var results = []; + var results = new $tw.utils.LinkedList(); source(function(tiddler,title) { - $tw.utils.pushTop(results,options.wiki.getTiddlerLinks(title)); + results.pushTop(options.wiki.getTiddlerLinks(title)); }); - return results; + return results.toArray(); }; })();