Skip to content

Commit 8936cc0

Browse files
🐛 Fix emitter "off" returning "on"
1 parent 1ce60de commit 8936cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uppload.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ export class Uppload implements IUppload {
875875
* @param handler - Event handler function
876876
*/
877877
off(type: string, handler: (event?: any) => void) {
878-
return this.emitter.on(type, handler);
878+
return this.emitter.off(type, handler);
879879
}
880880

881881
/**

0 commit comments

Comments
 (0)