-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed PollingController to be a mixin so it can be used with both V…
…1 and V2 controllers (#1736) ## Explanation - Currently the PollingController extends from BaseControllerV2 but we need to use it for both V1 and V2 controllers. - This PR uses typescript [mixins](https://www.typescriptlang.org/docs/handbook/mixins.html) to achieve a faux-multiple inheritance which TypeScript has support for. The pattern allows you to create a class which is a merge of many classes. I've added a V1 and a V2 version of the PollingController that can be used almost the same way as the original `PollingController`. --------- Co-authored-by: Mark Stacey <markjstacey@gmail.com>
- Loading branch information
Showing
2 changed files
with
139 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.