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

Method constructor

src/utils/dom-writer.js:213–234  ·  view source on GitHub ↗

* @param {!Window} win

(win)

Source from the content-addressed store, hash-verified

211 * @param {!Window} win
212 */
213 constructor(win) {
214 /** @private {!Array<string>} */
215 this.fullHtml_ = [];
216
217 /** @const @private */
218 this.vsync_ = Services.vsyncFor(win);
219
220 /** @private {?function(!Document):!Element} */
221 this.onBody_ = null;
222
223 /** @private {?function()} */
224 this.onBodyChunk_ = null;
225
226 /** @private {?function()} */
227 this.onEnd_ = null;
228
229 /** @const @private {!Promise} */
230 this.success_ = Promise.resolve();
231
232 /** @private {boolean} */
233 this.eof_ = false;
234 }
235
236 /** @override */
237 onBody(callback) {

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected