Open rak-phillip opened 1 week ago
@rak-phillip My guess is this was added for developer debugging - there were other cases like this that I have previously removed - it only appears to be written to, so I would go ahead and remove.
At least the last 2 are new - @eva-vashkevich may have added these and might have more information.
I am removing it from the drivers pages in my drivers fixes PR. Shouldn't have added it.
Several components contain the following code in their mounted hooks:
This assigns the current vue component instance to a
window.c
variable. It's unclear as to why this was added to Dashboard and it's not a very good practice as global variables can be modified from anywhere in code.Expected outcome
window.c
variable is removed from all Vue componentswindow.c
variable, it is refactored to use a more controlled approach like emitting events or Vuexwindow.c
Additional information
Identified components using this pattern: