mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-08 03:36:38 +00:00
Fix bug with operators that return an iterator
This commit is contained in:
parent
1972e8b5f3
commit
3e1286013f
@ -54,7 +54,14 @@ exports.inspect = function(source,operator,options) {
|
||||
});
|
||||
currentRun.push(details);
|
||||
var innerResults = operatorFunction.apply(null,Array.prototype.slice.call(arguments,1));
|
||||
details.output = innerResults.slice(0);
|
||||
if(!$tw.utils.isArray(innerResults)) {
|
||||
var resultArray = [];
|
||||
innerResults(function(tiddler,title) {
|
||||
resultArray.push(title);
|
||||
});
|
||||
innerResults = resultArray;
|
||||
}
|
||||
details.output = innerResults;
|
||||
return innerResults;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user