From 9fbb15f8e252dd7913bf05fcd1c59a44ac01728b Mon Sep 17 00:00:00 2001 From: iChengbo Date: Fri, 5 Nov 2021 14:46:15 +0800 Subject: [PATCH] fix spell error --- docs/guides/components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/components.md b/docs/guides/components.md index c631247859..2105a55f00 100644 --- a/docs/guides/components.md +++ b/docs/guides/components.md @@ -219,7 +219,7 @@ myComponent.on(otherComponent, 'eventName', myFunc); otherComponent.trigger('eventName'); // logs 'myFunc called' twice -myComponent.off(ootherComponent.el(), 'eventName', myFunc); +myComponent.off(otherComponent.el(), 'eventName', myFunc); myComponent.off(otherComponent, 'eventName', myFunc); otherComponent.trigger('eventName'); // does nothing