Merge branch 'next' into components

This commit is contained in:
Leo Horie 2015-03-24 20:23:39 -04:00
commit c1ea98fd09
4 changed files with 13 additions and 13 deletions

View file

@ -61,7 +61,8 @@ var m = (function app(window, undefined) {
for (var attrName in attrs) {
if (attrName === classAttrName) {
if (attrs[attrName] !== "") cell.attrs[attrName] = (cell.attrs[attrName] || "") + " " + attrs[attrName];
var className = cell.attrs[attrName]
cell.attrs[attrName] = (className && attrs[attrName] ? className + " " : className || "") + attrs[attrName];
}
else cell.attrs[attrName] = attrs[attrName]
}