fix nc-class bug

This commit is contained in:
kmdjs 2016-05-03 20:38:06 +08:00
parent cce1e020f5
commit 54a30c80bd
3 changed files with 11 additions and 3 deletions

6
dist/nuclear.js vendored
View File

@ -172,7 +172,11 @@ Nuclear._mixObj = function (obj) {
for (; j < cLen; j++) {
var cNode = cNodes[j];
var cAttr = cNode.getAttribute("nc-class");
if (!this[cAttr]) this[cAttr] = [];
this[cAttr] = [];
}
for (j = 0; j < cLen; j++) {
var cNode = cNodes[j];
var cAttr = cNode.getAttribute("nc-class");
this[cAttr].push(cNode);
}
}

2
dist/nuclear.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -154,7 +154,11 @@ Nuclear._mixObj = function (obj) {
for (; j < cLen; j++) {
var cNode = cNodes[j];
var cAttr = cNode.getAttribute("nc-class");
if (!this[cAttr]) this[cAttr] = [];
this[cAttr] = [];
}
for (j = 0; j < cLen; j++) {
var cNode = cNodes[j];
var cAttr = cNode.getAttribute("nc-class");
this[cAttr].push(cNode);
}
}