Rename loading event

This commit is contained in:
Surma
2019-02-11 16:04:52 +00:00
parent 3315188bb3
commit cb3c66fc5b

View File

@@ -440,7 +440,7 @@ export default class Compress extends Component<Props, State> {
// Either processor is good enough here. // Either processor is good enough here.
const processor = this.leftProcessor; const processor = this.leftProcessor;
this.setState({ loadingCounter, loading: true }, this.signalProcessingStart); this.setState({ loadingCounter, loading: true }, this.signalLoadingStart);
// Abort any current encode jobs, as they're redundant now. // Abort any current encode jobs, as they're redundant now.
this.leftProcessor.abortCurrent(); this.leftProcessor.abortCurrent();
this.rightProcessor.abortCurrent(); this.rightProcessor.abortCurrent();
@@ -526,7 +526,7 @@ export default class Compress extends Component<Props, State> {
} }
@bind @bind
private signalProcessingStart() { private signalLoadingStart() {
document.dispatchEvent( document.dispatchEvent(
new SquooshStartEvent(), new SquooshStartEvent(),
); );