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/web.js CHANGED
@@ -1006,10 +1006,13 @@ var $;
1006
1006
  "use strict";
1007
1007
  var $;
1008
1008
  (function ($) {
1009
+ const named = new WeakSet();
1009
1010
  function $mol_func_name(func) {
1010
1011
  let name = func.name;
1011
1012
  if (name?.length > 1)
1012
1013
  return name;
1014
+ if (named.has(func))
1015
+ return name;
1013
1016
  for (let key in this) {
1014
1017
  try {
1015
1018
  if (this[key] !== func)
@@ -1020,6 +1023,7 @@ var $;
1020
1023
  }
1021
1024
  catch { }
1022
1025
  }
1026
+ named.add(func);
1023
1027
  return name;
1024
1028
  }
1025
1029
  $.$mol_func_name = $mol_func_name;