mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-15 11:11:24 -07:00
Remove appply filter run prefix
This commit is contained in:
parent
d423aa926e
commit
3bc2c5fabc
1 changed files with 0 additions and 24 deletions
|
|
@ -1,24 +0,0 @@
|
|||
/*\
|
||||
title: $:/core/modules/filterrunprefixes/apply.js
|
||||
type: application/javascript
|
||||
module-type: filterrunprefix
|
||||
|
||||
Filter run prefix to make input titles available as variables when evaluating the filter run
|
||||
|
||||
\*/
|
||||
|
||||
"use strict";
|
||||
|
||||
exports.apply = function(operationSubFunction) {
|
||||
return function(results,source,widget) {
|
||||
source = widget.wiki.makeTiddlerIterator([]);
|
||||
var variables = {},
|
||||
counter = 1;
|
||||
results.each(function(title) {
|
||||
variables["$" + counter] = title;
|
||||
counter++;
|
||||
});
|
||||
results.clear();
|
||||
results.pushTop(operationSubFunction(source,widget.makeFakeWidgetWithVariables(variables)));
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue