1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-08 23:03:50 +00:00

Simplify title operator

This commit is contained in:
Jeremy Ruston 2025-03-29 14:45:35 +00:00
parent d20b02e606
commit 9453e3e2e2

View File

@ -21,11 +21,7 @@ exports.title = function(source,operator,options) {
}
});
} else {
if(operator.isMultiValueOperand[0]) {
Array.prototype.push.apply(results,operator.multiValueOperands[0]);
} else {
results.push(operator.operand);
}
Array.prototype.push.apply(results,operator.multiValueOperands[0]);
}
return results;
};