Skip to content

Commit

Permalink
馃悰 Fix emitter "off" returning "on"
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jun 13, 2020
1 parent 1ce60de commit 8936cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uppload.ts
Expand Up @@ -875,7 +875,7 @@ export class Uppload implements IUppload {
* @param handler - Event handler function
*/
off(type: string, handler: (event?: any) => void) {
return this.emitter.on(type, handler);
return this.emitter.off(type, handler);
}

/**
Expand Down

0 comments on commit 8936cc0

Please sign in to comment.