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

Method getDefaultProps

src/preact/amp-base-element.js:46–59  ·  view source on GitHub ↗

@override

()

Source from the content-addressed store, hash-verified

44
45 /** @override */
46 getDefaultProps() {
47 return {
48 ...super.getDefaultProps(),
49 'onLoading': () => {
50 this.handleOnLoading();
51 },
52 'onLoad': () => {
53 this.handleOnLoad();
54 },
55 'onError': () => {
56 this.handleOnError();
57 },
58 };
59 }
60
61 /**
62 * Default handler for onLoad event

Callers

nothing calls this directly

Calls 3

handleOnLoadingMethod · 0.95
handleOnLoadMethod · 0.95
handleOnErrorMethod · 0.95

Tested by

no test coverage detected