Correct bind usage in product import and export (bind wasn't targeting jQuery object; was native JS bind)

This commit is contained in:
Jonathan Sadowski 2021-02-22 12:32:12 -06:00
parent 37736799d6
commit 9e89ac8b95
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
this.$form.find('.woocommerce-exporter-progress').val( 0 );
// Methods.
this.processStep = this.processStep.on( this );
this.processStep = this.processStep.bind( this );
// Events.
$form.on( 'submit', { productExportForm: this }, this.onSubmit );

View File

@ -23,7 +23,7 @@
// Initial state.
this.$form.find('.woocommerce-importer-progress').val( 0 );
this.run_import = this.run_import.on( this );
this.run_import = this.run_import.bind( this );
// Start importing.
this.run_import();