Fix problem with custom tag in reveal widget

print-window-tiddler
Jermolene 2015-03-10 16:59:25 +00:00
rodzic e46d3d74be
commit e80a08f43b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -31,7 +31,7 @@ RevealWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
var tag = this.parseTreeNode.isBlock ? "div" : "span";
if($tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {
if(this.revealTag && $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {
tag = this.revealTag;
}
var domNode = this.document.createElement(tag);