mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-07-03 02:23:00 +00:00

* remove blks first try * dprint.json seems to be OK, some forgotten functions * add some more space-after-keyword settings * server remove blks * add **/files to dprint exclude * dprint.js fixes a typo * add boot.js and bootprefix.js to dprint exclude * dprint change dprint.json * add dprint fmt as script * remove jslint comments * fix whitespace * fix whitespace * remove function-wrapper from geospatial plugin * fix whitespace * add function wrapper to dyannotate-startup * remove dpring.json
27 lines
611 B
JavaScript
27 lines
611 B
JavaScript
/*\
|
|
title: $:/core/modules/filters/subtiddlerfields.js
|
|
type: application/javascript
|
|
module-type: filteroperator
|
|
|
|
Filter operator for returning the names of the fields on the selected subtiddlers of the plugin named in the operand
|
|
|
|
\*/
|
|
|
|
"use strict";
|
|
|
|
/*
|
|
Export our filter function
|
|
*/
|
|
exports.subtiddlerfields = function(source,operator,options) {
|
|
var results = [];
|
|
source(function(tiddler,title) {
|
|
var subtiddler = options.wiki.getSubTiddler(operator.operand,title);
|
|
if(subtiddler) {
|
|
for(var fieldName in subtiddler.fields) {
|
|
$tw.utils.pushTop(results,fieldName);
|
|
}
|
|
}
|
|
});
|
|
return results;
|
|
};
|