@braze/web-sdk
Version:
Braze SDK for web sites and other JS platforms.
29 lines (28 loc) • 522 B
JavaScript
import { Guid as V } from "../../shared-lib/index.js";
export default class f {
constructor() {
this.In = {};
}
Kt(t) {
if ("function" != typeof t) return null;
const i = V.de();
return (this.In[i] = t), i;
}
removeSubscription(t) {
delete this.In[t];
}
removeAllSubscriptions() {
this.In = {};
}
Le() {
return Object.keys(this.In).length;
}
A(t) {
const i = [];
for (const s in this.In) {
const r = this.In[s];
i.push(r(t));
}
return i;
}
}