mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-07 13:28:01 +00:00
Update function operator to return the input list if the function is missing
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
})();
|
||||
|
Reference in New Issue
Block a user