<code>var $this = this;</code> $this is then not used in the following line.