mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-07-30 23:48:54 +00:00
Remove appply filter run prefix
This commit is contained in:
@@ -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)));
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user