Support multiple classes on DOM fragments

This commit is contained in:
Tony Garnock-Jones 2014-03-10 14:50:18 -04:00
parent 2d998c188b
commit 4d0fd57efc
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});