You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey!
Please prove me wrong. If I set new view, I expect that events from old one will be disconnected. But in code I see that you are trying to disconnect events from new view I've just passed.
May be that should look like: if (wasItInitiated) this.disconnectEvents(this._view);
Or if (wasItInitiated) this.disconnectEvents(this.view);
Instead in code: if (wasItInitiated) this.disconnectEvents(view);
Hey!
Please prove me wrong. If I set new view, I expect that events from old one will be disconnected. But in code I see that you are trying to disconnect events from new view I've just passed.
May be that should look like:
if (wasItInitiated) this.disconnectEvents(this._view);
Or
if (wasItInitiated) this.disconnectEvents(this.view);
Instead in code:
if (wasItInitiated) this.disconnectEvents(view);
https://github.com/pixijs/ui/blob/9de9052060bbe88cfa5b6bc5519701ac69814250/src/Button.ts#L53C43-L53C43
The text was updated successfully, but these errors were encountered: