From a2dfaec054c216feecb336664a8f6ade298d3978 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 3 Jan 2013 20:51:28 +0000 Subject: [PATCH] Get rid of the extraneous around link widgets --- core/modules/widgets/view/viewers/link.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/modules/widgets/view/viewers/link.js b/core/modules/widgets/view/viewers/link.js index 0472ddb8c..14c92add7 100644 --- a/core/modules/widgets/view/viewers/link.js +++ b/core/modules/widgets/view/viewers/link.js @@ -21,11 +21,8 @@ var LinkViewer = function(viewWidget,tiddler,field,value) { LinkViewer.prototype.render = function() { var text = this.value === undefined ? "" : this.value; - // Set the element details - this.viewWidget.tag = "span"; - this.viewWidget.attributes = { - "class": "tw-view-link" - }; + // Indicate that we're not generating an element + this.viewWidget.tag = undefined; this.viewWidget.children = this.viewWidget.renderer.renderTree.createRenderers(this.viewWidget.renderer.renderContext,[{ type: "element", tag: "$link",