aboutsummaryrefslogtreecommitdiff
path: root/lib/style-reader.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/style-reader.js')
-rw-r--r--lib/style-reader.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/style-reader.js b/lib/style-reader.js
index a566826..9e23abd 100644
--- a/lib/style-reader.js
+++ b/lib/style-reader.js
@@ -33,14 +33,15 @@ function read(string) {
capture(lop.rules.zeroOrMore(classRule)),
capture(freshRule)
).map(function(tagName, classNames, fresh) {
+ var attributes = {};
var options = {};
if (classNames.length > 0) {
- options["class"] = classNames.join(" ");
+ attributes["class"] = classNames.join(" ");
}
if (fresh) {
options["fresh"] = true;
}
- return styles.element(tagName, options);
+ return styles.element(tagName, attributes, options);
});
var styleRule = lop.rules.then(