Skip to content

Commit

Permalink
Merge pull request #18758 from Justineo/fix-disconnect
Browse files Browse the repository at this point in the history
fix(api): only deprecate disConnect but not disconnect
  • Loading branch information
plainheart committed Jun 14, 2023
2 parents f36dc45 + 8ef4d3b commit f27b086
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core/echarts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2724,17 +2724,15 @@ export function connect(groupId: string | EChartsType[]): string {
return groupId as string;
}

/**
* @deprecated
*/
export function disConnect(groupId: string): void {
export function disconnect(groupId: string): void {
connectedGroups[groupId] = false;
}

/**
* Alias and backward compatibility
* @deprecated
*/
export const disconnect = disConnect;
export const disConnect = disconnect;

/**
* Dispose a chart instance
Expand Down

0 comments on commit f27b086

Please sign in to comment.