mol_plot_all 1.2.1294 → 1.2.1295

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.js CHANGED
@@ -3207,9 +3207,14 @@ var $;
3207
3207
  return $mol_dev_format_span({}, $mol_dev_format_native(this));
3208
3208
  }
3209
3209
  *view_find(check, path = []) {
3210
- if (check(this))
3210
+ if (path.length === 0 && check(this))
3211
3211
  return yield [...path, this];
3212
3212
  try {
3213
+ for (const item of this.sub()) {
3214
+ if (item instanceof $mol_view && check(item)) {
3215
+ return yield [...path, item];
3216
+ }
3217
+ }
3213
3218
  for (const item of this.sub()) {
3214
3219
  if (item instanceof $mol_view) {
3215
3220
  yield* item.view_find(check, [...path, this]);