kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fixed text widget crashing when text is missing
`<$text text=<<missingVariable>>/>` was crashingprint-window-tiddler
rodzic
2ae574d5ca
commit
d945492b8b
|
@ -30,7 +30,7 @@ TextNodeWidget.prototype.render = function(parent,nextSibling) {
|
|||
this.parentDomNode = parent;
|
||||
this.computeAttributes();
|
||||
this.execute();
|
||||
var text = this.getAttribute("text",this.parseTreeNode.text);
|
||||
var text = this.getAttribute("text",this.parseTreeNode.text || "");
|
||||
text = text.replace(/\r/mg,"");
|
||||
var textNode = this.document.createTextNode(text);
|
||||
parent.insertBefore(textNode,nextSibling);
|
||||
|
|
Ładowanie…
Reference in New Issue