malinajs 0.7.17 → 0.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/malina.js +4 -3
- package/package.json +1 -1
package/malina.js
CHANGED
|
@@ -5211,17 +5211,18 @@
|
|
|
5211
5211
|
return;
|
|
5212
5212
|
} else if(this.config.passClass && (name == 'class' || name.startsWith('class:'))) {
|
|
5213
5213
|
let metaClass, args = name.split(':');
|
|
5214
|
-
if(args.length == 1) {
|
|
5214
|
+
if (args.length == 1) {
|
|
5215
5215
|
metaClass = '$$main';
|
|
5216
5216
|
} else {
|
|
5217
5217
|
assert(args.length == 2);
|
|
5218
5218
|
metaClass = args[1];
|
|
5219
5219
|
assert(metaClass);
|
|
5220
|
+
if (!value) value = metaClass;
|
|
5220
5221
|
}
|
|
5221
5222
|
assert(value);
|
|
5222
5223
|
this.css.passingClass = true;
|
|
5223
5224
|
|
|
5224
|
-
const parsed = this.parseText(
|
|
5225
|
+
const parsed = this.parseText(value);
|
|
5225
5226
|
this.detectDependency(parsed);
|
|
5226
5227
|
let exp = parsed.result;
|
|
5227
5228
|
$class.push(`${metaClass}: $$resolveClass(${exp})`);
|
|
@@ -6904,7 +6905,7 @@
|
|
|
6904
6905
|
});
|
|
6905
6906
|
}
|
|
6906
6907
|
|
|
6907
|
-
const version = '0.7.
|
|
6908
|
+
const version = '0.7.18';
|
|
6908
6909
|
|
|
6909
6910
|
|
|
6910
6911
|
async function compile(source, config = {}) {
|