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

print-window-tiddler
Jeremy Ruston 2012-06-08 10:51:40 +01:00
rodzic 6264bf1bbe
commit 96c5153dea
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -75,9 +75,9 @@ exports.executeMacro = function() {
// Create the link // Create the link
var children; var children;
if(linkInfo.suppressLink) { if(linkInfo.suppressLink) {
children = this.cloneContent(); children = this.content;
} else { } 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++) { for(var t=0; t<children.length; t++) {
children[t].execute(this.parents,this.tiddlerTitle); children[t].execute(this.parents,this.tiddlerTitle);