Hey Chris, thanks for a great article! This is certainly stuff everyone should be aware of.
Peter Fessel
1

Hi Peter,

Thanks for your question and you are absolutely right — it is good practice to use this.$(‘el’) but either way it is adding a handler to the same instance of ‘window’.

For that reason there is still a need to used the elementId approach, I was too hasty to update my article after receiving some feedback.

I’ve updated the code snippets to include this.$(window) now, so that there is no confusion.

I hope this answers your question & I really appreciate you taking the time to feedback as hopefully now the article is much clearer.