mol_plot_all 1.2.1548 → 1.2.1550
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/node.deps.json +1 -1
- package/node.js +1 -1
- package/node.js.map +1 -1
- package/node.mjs +1 -1
- package/node.test.js +14 -7
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/web.mjs +1 -1
- package/web.test.js +13 -6
- package/web.test.js.map +1 -1
package/web.mjs
CHANGED
|
@@ -449,7 +449,7 @@ var $;
|
|
|
449
449
|
if (this[$mol_ambient_ref])
|
|
450
450
|
return this[$mol_ambient_ref];
|
|
451
451
|
const owner = $mol_owning_get(this);
|
|
452
|
-
return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
|
|
452
|
+
return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
|
|
453
453
|
}
|
|
454
454
|
set $(next) {
|
|
455
455
|
if (this[$mol_ambient_ref])
|
package/web.test.js
CHANGED
|
@@ -727,16 +727,16 @@ var $;
|
|
|
727
727
|
$mol_assert_unique([1], [2], [3]);
|
|
728
728
|
},
|
|
729
729
|
'two must be alike'() {
|
|
730
|
-
$
|
|
730
|
+
$mol_assert_equal([3], [3]);
|
|
731
731
|
},
|
|
732
732
|
'three must be alike'() {
|
|
733
|
-
$
|
|
733
|
+
$mol_assert_equal([3], [3], [3]);
|
|
734
734
|
},
|
|
735
735
|
'two object must be alike'() {
|
|
736
|
-
$
|
|
736
|
+
$mol_assert_equal({ a: 1 }, { a: 1 });
|
|
737
737
|
},
|
|
738
738
|
'three object must be alike'() {
|
|
739
|
-
$
|
|
739
|
+
$mol_assert_equal({ a: 1 }, { a: 1 }, { a: 1 });
|
|
740
740
|
},
|
|
741
741
|
});
|
|
742
742
|
})($ || ($ = {}));
|
|
@@ -847,7 +847,7 @@ var $;
|
|
|
847
847
|
;
|
|
848
848
|
"use strict";
|
|
849
849
|
var $;
|
|
850
|
-
(function ($) {
|
|
850
|
+
(function ($_1) {
|
|
851
851
|
$mol_test({
|
|
852
852
|
'init with overload'() {
|
|
853
853
|
class X extends $mol_object {
|
|
@@ -860,6 +860,13 @@ var $;
|
|
|
860
860
|
});
|
|
861
861
|
$mol_assert_equal(x.foo(), 2);
|
|
862
862
|
},
|
|
863
|
+
'Context in instance inherits from class'($) {
|
|
864
|
+
const custom = $.$mol_ambient({});
|
|
865
|
+
class X extends $.$mol_object {
|
|
866
|
+
static $ = custom;
|
|
867
|
+
}
|
|
868
|
+
$mol_assert_equal(new X().$, custom);
|
|
869
|
+
},
|
|
863
870
|
});
|
|
864
871
|
})($ || ($ = {}));
|
|
865
872
|
|
|
@@ -1162,7 +1169,7 @@ var $;
|
|
|
1162
1169
|
}
|
|
1163
1170
|
await $mol_wire_async(A).a();
|
|
1164
1171
|
$mol_assert_equal(A.instances.length, 2);
|
|
1165
|
-
$mol_assert_equal(A.instances[0] instanceof A);
|
|
1172
|
+
$mol_assert_equal(A.instances[0] instanceof A, true);
|
|
1166
1173
|
$mol_assert_equal(A.instances[0], A.instances[1]);
|
|
1167
1174
|
}
|
|
1168
1175
|
});
|