Correct bind usage in product import and export (bind wasn't targeting jQuery object; was native JS bind)
This commit is contained in:
parent
37736799d6
commit
9e89ac8b95
|
@ -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 );
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue