MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

third_party/subscriptions-project/swg.js:18611–18619  ·  view source on GitHub ↗

* @param {!Window} win * @param {!./deps.DepsDef} deps * @param {!./fetcher.Fetcher} fetcher * * IMPORTANT: deps may not be full initialized config and pageConfig are * available immediately, other function should be gated on a ready promise. * #TODO(jpettitt) switch refactor to ta

(win, deps, fetcher)

Source from the content-addressed store, hash-verified

18609 * #TODO(jpettitt) switch refactor to take out the win and use deps to get win
18610 */
18611 constructor(win, deps, fetcher) {
18612 /** @private @const {!Window} */
18613 this.win_ = win;
18614 /** @private {PropensityServer} */
18615 this.propensityServer_ = new PropensityServer(win, deps, fetcher);
18616
18617 /** @private @const {!../api/client-event-manager-api.ClientEventManagerApi} */
18618 this.eventManager_ = deps.eventManager();
18619 }
18620
18621 /** @override */
18622 sendSubscriptionState(state, jsonProducts) {

Callers

nothing calls this directly

Calls 1

eventManagerMethod · 0.80

Tested by

no test coverage detected