@yuneta/gobj-js 7.9.9 → 7.9.10

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.
@@ -1845,9 +1845,9 @@
1845
1845
  }, dr = null;
1846
1846
  function br(e, t, n, r) {
1847
1847
  let o = e.priv, i = o.periodic ? "EV_TIMEOUT_PERIODIC" : "EV_TIMEOUT";
1848
- return Ke(e) ? Et(Me(e), i, {}, e) : Dt(e, i, {}), o.periodic && (o.timer_id = setTimeout(function() {
1848
+ return o.periodic && o.msec > 0 ? o.timer_id = setTimeout(function() {
1849
1849
  Et(e, "EV_TIMEOUT", {}, e);
1850
- }, o.msec)), 0;
1850
+ }, o.msec) : o.timer_id = -1, Ke(e) ? Et(Me(e), i, {}, e) : Dt(e, i, {}), o.periodic || -1 !== o.timer_id || De(e) && Se(e), 0;
1851
1851
  }
1852
1852
  var pr = {
1853
1853
  mt_create: function(e) {
@@ -1863,7 +1863,7 @@
1863
1863
  break;
1864
1864
  case "msec": n.msec = lt(e, "msec"), -1 !== n.timer_id && (clearTimeout(n.timer_id), n.timer_id = -1), n.msec > 0 && (n.timer_id = setTimeout(function() {
1865
1865
  Et(e, "EV_TIMEOUT", {}, e);
1866
- }, n.msec));
1866
+ }, n.msec)), n.msec > 0 ? De(e) || ye(e) : De(e) && Se(e);
1867
1867
  }
1868
1868
  },
1869
1869
  mt_start: function(e) {