mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 10:49:43 +00:00
27 lines
540 B
JavaScript
27 lines
540 B
JavaScript
|
/*\
|
||
|
title: $:/core/modules/filters/transcludes.js
|
||
|
type: application/javascript
|
||
|
module-type: filteroperator
|
||
|
|
||
|
Filter operator for returning all the transcludes from a tiddler
|
||
|
|
||
|
\*/
|
||
|
(function(){
|
||
|
|
||
|
/*jslint node: true, browser: true */
|
||
|
/*global $tw: false */
|
||
|
"use strict";
|
||
|
|
||
|
/*
|
||
|
Export our filter function
|
||
|
*/
|
||
|
exports.transcludes = function(source,operator,options) {
|
||
|
var results = new $tw.utils.LinkedList();
|
||
|
source(function(tiddler,title) {
|
||
|
results.pushTop(options.wiki.getTiddlerTranscludes(title));
|
||
|
});
|
||
|
return results.toArray();
|
||
|
};
|
||
|
|
||
|
})();
|