mol_plot_all 1.2.1492 → 1.2.1494

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
@@ -1924,20 +1924,20 @@ var $;
1924
1924
  prefix;
1925
1925
  static href(next) {
1926
1926
  if (next === undefined) {
1927
- next = $mol_dom_context.location.href;
1927
+ next = $mol_dom.location.href;
1928
1928
  }
1929
1929
  else if (!/^about:srcdoc/.test(next)) {
1930
1930
  new $mol_after_frame(() => {
1931
1931
  const next = this.href();
1932
- const prev = $mol_dom_context.location.href;
1932
+ const prev = $mol_dom.location.href;
1933
1933
  if (next === prev)
1934
1934
  return;
1935
- const history = $mol_dom_context.history;
1936
- history.replaceState(history.state, $mol_dom_context.document.title, next);
1935
+ const history = $mol_dom.history;
1936
+ history.replaceState(history.state, $mol_dom.document.title, next);
1937
1937
  });
1938
1938
  }
1939
- if ($mol_dom_context.parent !== $mol_dom_context.self) {
1940
- $mol_dom_context.parent.postMessage(['hashchange', next], '*');
1939
+ if ($mol_dom.parent && ($mol_dom.parent !== $mol_dom.self)) {
1940
+ $mol_dom.parent.postMessage(['hashchange', next], '*');
1941
1941
  }
1942
1942
  return next;
1943
1943
  }
@@ -1945,7 +1945,7 @@ var $;
1945
1945
  return this.link({});
1946
1946
  }
1947
1947
  static href_absolute() {
1948
- return new URL(this.href(), $mol_dom_context.location.href).toString();
1948
+ return new URL(this.href(), $mol_dom.location.href).toString();
1949
1949
  }
1950
1950
  static dict(next) {
1951
1951
  var href = this.href(next && this.make_link(next)).split(/#!?/)[1] || '';
@@ -1996,7 +1996,7 @@ var $;
1996
1996
  $mol_dom.history.pushState($mol_dom.history.state, $mol_dom.document.title, this.href());
1997
1997
  }
1998
1998
  static go(next) {
1999
- $mol_dom_context.location.href = this.link(next);
1999
+ $mol_dom.location.href = this.link(next);
2000
2000
  }
2001
2001
  static encode(str) {
2002
2002
  return encodeURIComponent(str).replace(/\(/g, '%28').replace(/\)/g, '%29');
@@ -2049,7 +2049,7 @@ var $;
2049
2049
  ], $mol_state_arg, "go", null);
2050
2050
  $.$mol_state_arg = $mol_state_arg;
2051
2051
  function $mol_state_arg_change() {
2052
- $mol_state_arg.href($mol_dom_context.location.href);
2052
+ $mol_state_arg.href($mol_dom.location.href);
2053
2053
  }
2054
2054
  self.addEventListener('hashchange', $mol_state_arg_change);
2055
2055
  })($ || ($ = {}));
@@ -3272,7 +3272,7 @@ var $;
3272
3272
  return node;
3273
3273
  }
3274
3274
  auto() {
3275
- return null;
3275
+ return [];
3276
3276
  }
3277
3277
  render() {
3278
3278
  const node = this.dom_node_actual();