1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-27 06:38:19 +00:00

Converting [links[]] to use better LinkedList (#5369)

This commit is contained in:
Cameron Fischer 2021-01-05 12:36:18 -05:00 committed by GitHub
parent 87b9dbcda1
commit e280f89ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,11 @@ Filter operator for returning all the links from a tiddler
Export our filter function Export our filter function
*/ */
exports.links = function(source,operator,options) { exports.links = function(source,operator,options) {
var results = []; var results = new $tw.utils.LinkedList();
source(function(tiddler,title) { source(function(tiddler,title) {
$tw.utils.pushTop(results,options.wiki.getTiddlerLinks(title)); results.pushTop(options.wiki.getTiddlerLinks(title));
}); });
return results; return results.toArray();
}; };
})(); })();