Get rid of the extraneous <span> around link widgets

print-window-tiddler
Jeremy Ruston 2013-01-03 20:51:28 +00:00
rodzic 89d44e27df
commit a2dfaec054
1 zmienionych plików z 2 dodań i 5 usunięć

Wyświetl plik

@ -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",