Skip to content

Commit

Permalink
fixes #307
Browse files Browse the repository at this point in the history
  • Loading branch information
mlrawlings committed Jun 14, 2016
1 parent a60d007 commit 01f8a24
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function mergeShorthandClassNames(el, shorthandClassNames, context) {
prevClassName.value += ' ' + className.value;
} else {
finalClassNames.push(className);
prevClassName = className;
}
prevClassName = className;
}

if (finalClassNames.length === 1) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="foo bar baz bat"></div><div class="foo bar test123 baz"></div><div class="foo bar baz test"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.foo.bar.baz.bat
.foo.bar.${data.cls}.baz
.foo.bar.baz class="test"
3 changes: 3 additions & 0 deletions test/autotests/render/shorthand-classes-many-classes/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exports.templateData = {
cls: 'test123'
};

0 comments on commit 01f8a24

Please sign in to comment.