Allow published DOM fragments to be just plain text.
This commit is contained in:
parent
64cbe51578
commit
da978aad39
|
@ -126,7 +126,9 @@ DOMFragment.prototype.buildNodes = function () {
|
|||
var nodes = [];
|
||||
$(self.selector).each(function (index, domNode) {
|
||||
var n = self.interpretSpec(self.fragmentSpec.sealContents);
|
||||
n.classList.add(self.fragmentClass);
|
||||
if ('classList' in n) {
|
||||
n.classList.add(self.fragmentClass);
|
||||
}
|
||||
domNode.appendChild(n);
|
||||
nodes.push(n);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue