Support multiple classes on DOM fragments
This commit is contained in:
parent
2d998c188b
commit
4d0fd57efc
|
@ -83,7 +83,7 @@ DOMFragment.prototype.buildNodes = function () {
|
|||
var nodes = [];
|
||||
$(self.selector).each(function (index, domNode) {
|
||||
var n = self.interpretSpec(self.fragmentSpec);
|
||||
n.className = self.fragmentClass;
|
||||
n.classList.add(self.fragmentClass);
|
||||
domNode.appendChild(n);
|
||||
nodes.push(n);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue