mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
Update function operator to return the input list if the function is missing
This commit is contained in:
parent
ecd467496d
commit
68a1d61f33
@ -38,8 +38,12 @@ exports.function = function(source,operator,options) {
|
||||
return list;
|
||||
}
|
||||
}
|
||||
// Return an empty list if the function wasn't found
|
||||
return [];
|
||||
// Return the input list if the function wasn't found
|
||||
var results = [];
|
||||
source(function(tiddler,title) {
|
||||
results.push(title);
|
||||
});
|
||||
return results;
|
||||
};
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user