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