MCPcopy
hub / github.com/ampproject/amphtml / getDefaultProps

Method getDefaultProps

src/preact/base-element.js:239–258  ·  view source on GitHub ↗

* Returns default props * @return {JsonObject}

()

Source from the content-addressed store, hash-verified

237 * @return {JsonObject}
238 */
239 getDefaultProps() {
240 return {
241 'loading': Loading_Enum.AUTO,
242
243 /**
244 * @param {import('#core/constants/ready-state').ReadyState_Enum} state
245 * @param {Error=} opt_failure
246 */
247 'onReadyState': (state, opt_failure) => {
248 this.onReadyState_(state, opt_failure);
249 },
250
251 /**
252 * @param {boolean} isPlaying
253 */
254 'onPlayingState': (isPlaying) => {
255 this.updateIsPlaying_(isPlaying);
256 },
257 };
258 }
259
260 /** @param {AmpElement} element */
261 constructor(element) {

Callers 1

constructorMethod · 0.95

Calls 2

onReadyState_Method · 0.95
updateIsPlaying_Method · 0.80

Tested by

no test coverage detected