@yuneta/gobj-js 7.13.3 → 7.13.4

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.
@@ -719,7 +719,7 @@ var gobjJs = function(e) {
719
719
  }
720
720
  B(e) && L(n("⏯ ⏯ play: %s", Me(e))), e.playing = !0;
721
721
  let t = 0;
722
- return e.gclass.gmt.mt_play && (t = e.gclass.gmt.mt_play(e), t < 0 && (e.playing = !1)), t;
722
+ return e.gclass.gmt.mt_play && (t = e.gclass.gmt.mt_play(e), (t < 0 || !1 === t) && (e.playing = !1)), t;
723
723
  }
724
724
  function De(e) {
725
725
  return Ye(e) ? (Bt("gobj NULL or DESTROYED"), -1) : e.playing ? (B(e) && L(n("⏸ ⏸ pause: %s", Me(e))), e.playing = !1, e.gclass.gmt.mt_pause ? e.gclass.gmt.mt_pause(e) : 0) : (Bt(`${Ve(e)}: GObj NOT PLAYING`), -1);
@@ -1099,7 +1099,12 @@ var gobjJs = function(e) {
1099
1099
  }
1100
1100
  return ln(o, "subs_flag", i), o;
1101
1101
  }(e, t, r, o);
1102
- return s ? (sn(e.dl_subscriptions, s), sn(o.dl_subscribings, s), p && lt(p, "trace_subscriptions") && (L(n("💜💜👍 subscribing event '%s', publisher '%s', subscriber %s", t || "", Ve(e), Ve(o))), r && zt(r)), e.gclass.gmt.mt_subscription_added && e.gclass.gmt.mt_subscription_added(e, s) < 0 && (wt(e, s, !0, !0), s = 0), s) : (Bt(`${Ve(e)}: _create_subscription() FAILED`), 0);
1102
+ if (!s) return Bt(`${Ve(e)}: _create_subscription() FAILED`), 0;
1103
+ if (sn(e.dl_subscriptions, s), sn(o.dl_subscribings, s), p && lt(p, "trace_subscriptions") && (L(n("💜💜👍 subscribing event '%s', publisher '%s', subscriber %s", t || "", Ve(e), Ve(o))), r && zt(r)), e.gclass.gmt.mt_subscription_added) {
1104
+ let t = e.gclass.gmt.mt_subscription_added(e, s);
1105
+ (t < 0 || !1 === t) && (wt(e, s, !0, !0), s = 0);
1106
+ }
1107
+ return s;
1103
1108
  }
1104
1109
  function At(e, t, n) {
1105
1110
  let r = [...t];
@@ -1128,7 +1133,7 @@ var gobjJs = function(e) {
1128
1133
  if (e.gclass.gmt.mt_publication_pre_filter) {
1129
1134
  let n = e.gclass.gmt.mt_publication_pre_filter(e, a, t, r);
1130
1135
  if (n < 0) break;
1131
- if (0 === n) continue;
1136
+ if (!n) continue;
1132
1137
  }
1133
1138
  let u = $n(e, a, "subscriber", null, Ct.KW_REQUIRED);
1134
1139
  if (!u || Ye(u)) continue;