|
@@ -78,6 +78,7 @@ export function getPropertyAssociation( languageDefs, key, value ) {
|
|
|
|
|
|
|
|
for ( const def of languageDefs ) {
|
|
for ( const def of languageDefs ) {
|
|
|
if ( key === 'class' ) {
|
|
if ( key === 'class' ) {
|
|
|
|
|
+ // Only the first class is considered.
|
|
|
association[ def[ key ].split( ' ' ).shift() ] = def[ value ];
|
|
association[ def[ key ].split( ' ' ).shift() ] = def[ value ];
|
|
|
} else {
|
|
} else {
|
|
|
association[ def[ key ] ] = def[ value ];
|
|
association[ def[ key ] ] = def[ value ];
|