MCPcopy Create free account
hub / github.com/adearriba/ShopifyCheckoutJS / on

Method on

src/Components/BaseInputComponent.js:27–29  ·  view source on GitHub ↗

* Add an event listener to a specific event * @param {string} event Event name * @param {function} callback Callback function to execute when event triggers

(event, callback)

Source from the content-addressed store, hash-verified

25 * @param {function} callback Callback function to execute when event triggers
26 */
27 on(event, callback){
28 this.addEventListener(`checkout:${this.componentType}:${event}`, callback, false);
29 }
30
31 /**
32 * Call a callback when the value of the component changes.

Callers 2

onValueChangedMethod · 0.95
addOptionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected