3 ms·
It could get messy if you're doing stuff with Canvas, but I've used "ctx" in the past to denote the context change.
by j79 9y ago
It could get messy if you're doing stuff with Canvas, but I've used "ctx" in the past to denote the context change.
- bjterry 9y ago'self' is also the global variable when you are in a WebWorker context, so it's sort of like overwriting 'window'. When you are in a window context 'self' is also identical with 'window' but people don't usually use it there.