dresscode-botex
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -24,3 +24,5 @@ Botex.Tag = Bricks.inherit(Botex.Template, { | ||
var attrs = Pony.Object.assign({}, $.attrs); | ||
var cls = Bricks.String.trim($.className.join(' ')); | ||
var cls = Bricks.String.trim($.className.map(function(cls) { | ||
return cls instanceof Quantum.Quant ? cls.getValue() : cls; | ||
}).join(' ')); | ||
if (cls) { | ||
@@ -31,2 +33,5 @@ attrs['class'] = cls; | ||
var value = $.style[name]; | ||
if (value instanceof Quantum.Quant) { | ||
value = value.getValue(); | ||
} | ||
return value !== null && value !== undefined ? name + ':' + value + ';' : ''; | ||
@@ -39,2 +44,5 @@ }, this).join(''); | ||
var value = attrs[name]; | ||
if (value instanceof Quantum.Quant) { | ||
value = value.getValue(); | ||
} | ||
if (!value) { | ||
@@ -41,0 +49,0 @@ return ''; |
{ | ||
"name": "dresscode-botex", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "dresscode-bricks": "latest", |
46227
1235