malinajs 0.6.60 → 0.6.61
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/compile.js +5 -0
- package/malina.js +6 -1
- package/package.json +1 -1
- package/runtime.js +2 -2
package/compile.js
CHANGED
package/malina.js
CHANGED
|
@@ -5378,6 +5378,11 @@
|
|
|
5378
5378
|
});
|
|
5379
5379
|
}
|
|
5380
5380
|
|
|
5381
|
+
if(external) {
|
|
5382
|
+
this.require('$component');
|
|
5383
|
+
if(props?.length) this.require('apply');
|
|
5384
|
+
}
|
|
5385
|
+
|
|
5381
5386
|
return xNode('fragment', {
|
|
5382
5387
|
name,
|
|
5383
5388
|
props,
|
|
@@ -5926,7 +5931,7 @@
|
|
|
5926
5931
|
return {event, fn};
|
|
5927
5932
|
}
|
|
5928
5933
|
|
|
5929
|
-
const version = '0.6.
|
|
5934
|
+
const version = '0.6.61';
|
|
5930
5935
|
|
|
5931
5936
|
|
|
5932
5937
|
async function compile(source, config = {}) {
|
package/package.json
CHANGED
package/runtime.js
CHANGED
|
@@ -718,7 +718,7 @@ const exportFragment = ($component, name, fn) => {
|
|
|
718
718
|
let $cd = $childCD.new();
|
|
719
719
|
cd_onDestroy($parentCD, () => $cd.destroy());
|
|
720
720
|
fn($cd, label, props, events, slot);
|
|
721
|
-
$component.apply();
|
|
721
|
+
$component.apply?.();
|
|
722
722
|
};
|
|
723
723
|
};
|
|
724
724
|
|
|
@@ -734,7 +734,7 @@ const observeProps = (cmp, fn) => {
|
|
|
734
734
|
let result;
|
|
735
735
|
fire($watch(cd, fn, value => {
|
|
736
736
|
result = value;
|
|
737
|
-
target.$$.apply();
|
|
737
|
+
target.$$.apply?.();
|
|
738
738
|
}, {ro: true, value: {}, cmp}));
|
|
739
739
|
return () => result;
|
|
740
740
|
}
|