Skip to content

Commit

Permalink
fix: reconfig judge logic
Browse files Browse the repository at this point in the history
  • Loading branch information
skie1997 committed Oct 26, 2023
1 parent 0ee0a8a commit 1c53543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vchart/src/core/vchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,8 @@ export class VChart implements IVChart {
on(eType: EventType, query: EventQuery, handler: EventCallback<EventParams>): void;
on(eType: EventType, query: EventQuery | EventCallback<EventParams>, handler?: EventCallback<EventParams>): void {
if (!this._userEvents) {
this._userEvents = [];
// userEvents正常情况下有默认值,如果!userEvents,说明此时chart被release了,就可以终止流程
return;
}
this._userEvents.push({
eType,
Expand Down

0 comments on commit 1c53543

Please sign in to comment.