From 96c5153dea8428ba05f0b2cdb50024538cb12c01 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 8 Jun 2012 10:51:40 +0100 Subject: [PATCH] We don't need to clone the children of the link macro --- core/modules/macros/link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/macros/link.js b/core/modules/macros/link.js index bec49e389..97def2258 100644 --- a/core/modules/macros/link.js +++ b/core/modules/macros/link.js @@ -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