mol_plot_all 1.2.1294 → 1.2.1296
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 +6 -1
- package/node.js.map +1 -1
- package/node.mjs +6 -1
- package/node.test.js +6 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +6 -1
- package/web.js.map +1 -1
- package/web.mjs +6 -1
package/web.js
CHANGED
|
@@ -2509,9 +2509,14 @@ var $;
|
|
|
2509
2509
|
return $mol_dev_format_span({}, $mol_dev_format_native(this));
|
|
2510
2510
|
}
|
|
2511
2511
|
*view_find(check, path = []) {
|
|
2512
|
-
if (check(this))
|
|
2512
|
+
if (path.length === 0 && check(this))
|
|
2513
2513
|
return yield [...path, this];
|
|
2514
2514
|
try {
|
|
2515
|
+
for (const item of this.sub()) {
|
|
2516
|
+
if (item instanceof $mol_view && check(item)) {
|
|
2517
|
+
return yield [...path, item];
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2515
2520
|
for (const item of this.sub()) {
|
|
2516
2521
|
if (item instanceof $mol_view) {
|
|
2517
2522
|
yield* item.view_find(check, [...path, this]);
|