@yuneta/gobj-js 7.6.5 → 7.6.7

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.
@@ -2000,9 +2000,9 @@ var gobjJs = (function(exports) {
2000
2000
  *
2001
2001
  ***************************************************************************/
2002
2002
  function gobj_current_state(gobj) {
2003
- if (gobj_is_destroying(gobj)) {
2004
- log_error("gobj NULL or DESTROYED");
2005
- return null;
2003
+ if (!is_gobj(gobj)) {
2004
+ log_error("hgobj NULL");
2005
+ return "";
2006
2006
  }
2007
2007
  return gobj.current_state.state_name;
2008
2008
  }
@@ -5616,6 +5616,7 @@ var gobjJs = (function(exports) {
5616
5616
  }, gobj);
5617
5617
  };
5618
5618
  websocket.onclose = (e) => {
5619
+ if (gobj_is_destroying(gobj)) return;
5619
5620
  if (!gobj_read_bool_attr(gobj_yuno(), "browser_beforeunload")) gobj_send_event(gobj, "EV_ON_CLOSE", {
5620
5621
  url,
5621
5622
  e