1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-03-27 05:46:55 +00:00

We don't need to clone the children of the link macro

This commit is contained in:
Jeremy Ruston 2012-06-08 10:51:40 +01:00
parent 6264bf1bbe
commit 96c5153dea

View File

@ -75,9 +75,9 @@ exports.executeMacro = function() {
// Create the link
var children;
if(linkInfo.suppressLink) {
children = this.cloneContent();
children = this.content;
} else {
children = [$tw.Tree.Element("a",linkInfo.attributes,this.cloneContent())];
children = [$tw.Tree.Element("a",linkInfo.attributes,this.content)];
}
for(var t=0; t<children.length; t++) {
children[t].execute(this.parents,this.tiddlerTitle);