mol_plot_all 1.2.502 → 1.2.504

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
@@ -1529,10 +1529,13 @@ var $;
1529
1529
  "use strict";
1530
1530
  var $;
1531
1531
  (function ($) {
1532
+ const named = new WeakSet();
1532
1533
  function $mol_func_name(func) {
1533
1534
  let name = func.name;
1534
1535
  if (name?.length > 1)
1535
1536
  return name;
1537
+ if (named.has(func))
1538
+ return name;
1536
1539
  for (let key in this) {
1537
1540
  try {
1538
1541
  if (this[key] !== func)
@@ -1543,6 +1546,7 @@ var $;
1543
1546
  }
1544
1547
  catch { }
1545
1548
  }
1549
+ named.add(func);
1546
1550
  return name;
1547
1551
  }
1548
1552
  $.$mol_func_name = $mol_func_name;