Skip to content

doc(off): update off signature #441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions en/api/echarts-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,15 @@ If event is triggered externally by [dispatchAction](~echartsInstance.dispatchAc

## off(Function)
```ts
(eventName: string, handler?: Function)
(eventName?: string, handler?: Function)
```

Unbind event-handler function.

**parameter: **
+ `eventName`

Event name.
Event name. Optional. If not specified, all listeners will be unbound.

+ `handler`

Expand Down
4 changes: 2 additions & 2 deletions zh/api/echarts-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,15 @@ ECharts 中的事件有两种,一种是鼠标事件,在鼠标点击某个图

## off(Function)
```ts
(eventName: string, handler?: Function)
(eventName?: string, handler?: Function)
```

解绑事件处理函数。

**参数:**
+ `eventName`

事件名称。
事件名称。可选,不传的话解绑所有事件。

+ `handler`

Expand Down