I think it is worth mentioning (perhaps in a companion article) eliminating "this" ala classless OOP and the revealing module pattern. Now you have Javascript sans "this" covered in its entirety.
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
I think it is worth mentioning (perhaps in a companion article) eliminating "this" ala classless OOP and the revealing module pattern. Now you have Javascript sans "this" covered in its entirety.
The revealing module pattern is a great pattern. That is how I used to write my JavaScript classes before going fully functional.
And yes, that pattern is a really good way to still create an Object without the need for
this
.It would actually be better to switch your class to use the revealing module pattern. And if you can't, there's always
nothis
:)Cheers!