mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
fixes #307
This commit is contained in:
parent
a60d0078b9
commit
01f8a24dc0
@ -56,8 +56,8 @@ function mergeShorthandClassNames(el, shorthandClassNames, context) {
|
|||||||
prevClassName.value += ' ' + className.value;
|
prevClassName.value += ' ' + className.value;
|
||||||
} else {
|
} else {
|
||||||
finalClassNames.push(className);
|
finalClassNames.push(className);
|
||||||
|
prevClassName = className;
|
||||||
}
|
}
|
||||||
prevClassName = className;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (finalClassNames.length === 1) {
|
if (finalClassNames.length === 1) {
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
<div class="foo bar baz bat"></div><div class="foo bar test123 baz"></div><div class="foo bar baz test"></div>
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
.foo.bar.baz.bat
|
||||||
|
.foo.bar.${data.cls}.baz
|
||||||
|
.foo.bar.baz class="test"
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
exports.templateData = {
|
||||||
|
cls: 'test123'
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user