1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-31 23:53:00 +00:00

Refactored shadow tiddlers to not be in a separate store

Shortly there will be a flag to mark them
This commit is contained in:
Jeremy Ruston
2012-06-06 12:07:33 +01:00
parent 7c382c5f43
commit e2ea8ff436
6 changed files with 33 additions and 46 deletions

View File

@@ -17,17 +17,15 @@ exports.info = {
params: {
filter: {byPos: 0, type: "filter"},
as: {byPos: 1, type: "text"},
shadow: {byPos: 2, type: "text"},
removePrefix: {byName: true, type: "text"}
}
};
exports.executeMacro = function() {
var as = this.params.as || "text/plain",
wiki = this.hasParameter("shadow") ? this.wiki.shadows : this.wiki,
t;
if(this.hasParameter("filter")) {
var titles = wiki.filterTiddlers(this.params.filter),
var titles = this.wiki.filterTiddlers(this.params.filter),
result = [];
if(this.hasParameter("removePrefix")) {
for(t=0; t<titles.length; t++) {