12 Oct, 2007
Double bind() for better `this` experience
Posted by: Jure Cuhalev In: Planet Kiberpipa| Planet LiveCD| Tech| javascript
I am doing some developing with prototype lately and I was having some issues with context of `this` variable. The problem is that javascript is different from python in a way that defines local variable scope of class methods.
So here is short snippet with double bind(this) that allows one to reference class `this`. In essence, [...]



