UNPKG

@bigcommerce/stencil-utils

Version:

Utility library used by BigCommerce Stencil Framework themes

21 lines (16 loc) 397 B
import BaseHooks from './base'; export default class extends BaseHooks { /** * @Constructor */ constructor() { // call parent super(); this.optionsChange(); } optionsChange() { this.$body.on('change', '[data-product-option-change]', (event) => { this.emit('product-option-change', event, event.target); }); } }